- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Porting VAX Basic code to itanium
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2010 03:46 AM
тАО09-15-2010 03:46 AM
Porting VAX Basic code to itanium
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2010 04:08 AM
тАО09-15-2010 04:08 AM
Re: Porting VAX Basic code to itanium
Thanks,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2010 04:31 AM
тАО09-15-2010 04:31 AM
Re: Porting VAX Basic code to itanium
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2010 04:47 AM
тАО09-15-2010 04:47 AM
Re: Porting VAX Basic code to itanium
If you can post the code segment that has the ERL function currently, we can understand how it was used and can then suggest how to recode the segment to avoid its use. Without the context of how the ERL function is used, we cannot provide an alternative. In many cases, this ERL function is used to determine actions for particular failures. Using OpenVMS status code values rather than line numbers, similar functions can be performed. Showing us the code segment will allow us to determine the easiest way to mimic the current functions.
Thanks,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2010 06:03 AM
тАО09-15-2010 06:03 AM
Re: Porting VAX Basic code to itanium
If ERR = 51% and ERL 5102
then
Print "ERROR IN LINE 5102"
RESUME 5120
So from above if there is an error in line 5120 it will print just for a example . So now if we have to remove ERL function BASIC Code (.BAS).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2010 06:28 AM
тАО09-15-2010 06:28 AM
Re: Porting VAX Basic code to itanium
Changing this to a more specific check like the following (not Basic code, but descriptive lines) should work:
At line X would be the following:
Code_line = 5105
{execute line 5105}
.
.
.
If err = %51 and code_line=5105
then...
resume 5120
===============
The main differene here is that you manually set the code_line variable wherever necesary. While not the most elegant solution, this will work.
An alternative would be to post the exact code segment in question rather than your short example. Perhaps the error codes being checked are standard RMS or other codes that can be handled in a different manner.
Hope this helps a bit,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2010 02:31 PM
тАО09-15-2010 02:31 PM
Re: Porting VAX Basic code to itanium
For example, rather than writing code which is dependent on (hard coded!) specific line numbers, use LIB$SIGNAL to generate a traceback message, which will automatically list line numbers, module offsets and absolute addresses.
Use exception handlers to catch and handle errors. From what I've seen, ERL is a clumsy and ugly mechanism which has only been used "because it's there". If it were a truly useful and necessary feature, it would have been implemented on Itanium.
Look at what's it's really being used for and find a better way to do it. Without seeing real code, it's difficult for us to make specific suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2010 03:04 AM
тАО09-16-2010 03:04 AM
Re: Porting VAX Basic code to itanium
Where?
ERL works fine on Itanium. Of cource if you remove line numbers from the program or compile/link without line number support it won't work.
Port your VAX BASIC code as is, it will probably work without the need for any changes. Once you've ported then look at what you may want to do with regard to line numbers.
Programs without line numbers will run faster, but then you should use the When Error In/Use, End When contructs.
Look up BASIC/[NO]LINES in BASIC help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2010 04:52 AM
тАО09-16-2010 04:52 AM
Re: Porting VAX Basic code to itanium
when error in
use
end when
Without seeing the code Its hard to be specific but
10 on error goto 19000
20 i% = integer( "AAA", long )
30 call foo(i%)
40 goto 32767
19000 if erl = 20 and err = 52 then print "failed"
32767 end
without line numbers is:
when error in
i% = integer( "A" )
call foo(i%)
use
print "failed"
end when
end
or:
when error in
i%= integer( "A" )
call foo(i%)
use like19000
handler like19000
print "Failed"
end handler
Jonathan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2010 05:33 PM
тАО09-16-2010 05:33 PM
Re: Porting VAX Basic code to itanium
Putting just one line number would fix this. e.g. if the first line of your program was:
1 ! Dummy line no
it would (should) compile.