<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Porting VAX Basic code to itanium in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255420#M40522</link>
    <description>&lt;!--!*#--&gt;ERL (ERror Line) requires using line numbers;  the corresponding functionality without line numbers is the when clause:&lt;BR /&gt;&lt;BR /&gt;when error in&lt;BR /&gt;use&lt;BR /&gt;end when&lt;BR /&gt;&lt;BR /&gt;Without seeing the code Its hard to be specific but&lt;BR /&gt;&lt;BR /&gt;10 on error goto 19000&lt;BR /&gt;20 i% = integer( "AAA", long )&lt;BR /&gt;30 call foo(i%)&lt;BR /&gt;40 goto 32767&lt;BR /&gt;19000 if erl = 20 and err = 52 then print "failed"&lt;BR /&gt;32767 end&lt;BR /&gt;&lt;BR /&gt;without line numbers is:&lt;BR /&gt;&lt;BR /&gt;when error in&lt;BR /&gt;  i% = integer( "A" )&lt;BR /&gt;  call foo(i%)&lt;BR /&gt;use&lt;BR /&gt;  print "failed"&lt;BR /&gt;end when&lt;BR /&gt;&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;&lt;BR /&gt;when error in&lt;BR /&gt;  i%= integer( "A" )&lt;BR /&gt;   call foo(i%)&lt;BR /&gt;use like19000&lt;BR /&gt;&lt;BR /&gt;handler like19000&lt;BR /&gt;   print "Failed"&lt;BR /&gt;end handler&lt;BR /&gt;&lt;BR /&gt;Jonathan</description>
    <pubDate>Thu, 16 Sep 2010 11:52:42 GMT</pubDate>
    <dc:creator>Jonathan Cronin</dc:creator>
    <dc:date>2010-09-16T11:52:42Z</dc:date>
    <item>
      <title>Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255412#M40514</link>
      <description>I am facing a problem in porting my VAX-BASIC code to Itanium. Here this basic code is giving error with a basic function ERL . As we have changed the all the line no to label No . So what could be best possible way of substituting the ERL Function on itanium.</description>
      <pubDate>Wed, 15 Sep 2010 10:46:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255412#M40514</guid>
      <dc:creator>janaki jeevan patnaik</dc:creator>
      <dc:date>2010-09-15T10:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255413#M40515</link>
      <description>To best respond to this, a copy of the error would be most helpful.  Can you attach a part of the listing that shows the error?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dan</description>
      <pubDate>Wed, 15 Sep 2010 11:08:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255413#M40515</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2010-09-15T11:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255414#M40516</link>
      <description>it say ERL function is not supported . As Basic language is new to me i do not able to write a code to bypass ERL function . so need som help to write a code ti subtitute the ERL function on BASIC Program.</description>
      <pubDate>Wed, 15 Sep 2010 11:31:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255414#M40516</guid>
      <dc:creator>janaki jeevan patnaik</dc:creator>
      <dc:date>2010-09-15T11:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255415#M40517</link>
      <description>Let me restate this:&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dan</description>
      <pubDate>Wed, 15 Sep 2010 11:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255415#M40517</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2010-09-15T11:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255416#M40518</link>
      <description>It will lok something like &lt;BR /&gt;&lt;BR /&gt;If ERR = 51% and ERL 5102&lt;BR /&gt;  then&lt;BR /&gt;   Print "ERROR IN LINE 5102"&lt;BR /&gt;   RESUME 5120&lt;BR /&gt;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).</description>
      <pubDate>Wed, 15 Sep 2010 13:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255416#M40518</guid>
      <dc:creator>janaki jeevan patnaik</dc:creator>
      <dc:date>2010-09-15T13:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255417#M40519</link>
      <description>It looks like the code is trapping for specific error codes and printing an error message than continuing on to process additional work.&lt;BR /&gt;&lt;BR /&gt;Changing this to a more specific check like the following (not Basic code, but descriptive lines) should work:&lt;BR /&gt;&lt;BR /&gt;At line X would be the following:&lt;BR /&gt;&lt;BR /&gt;Code_line = 5105&lt;BR /&gt;{execute line 5105}&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;If err = %51 and code_line=5105&lt;BR /&gt;  then...&lt;BR /&gt;   resume 5120&lt;BR /&gt;&lt;BR /&gt;===============&lt;BR /&gt;The main differene here is that you manually set the code_line variable wherever necesary.  While not the most elegant solution, this will work.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Hope this helps a bit,&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Wed, 15 Sep 2010 13:28:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255417#M40519</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2010-09-15T13:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255418#M40520</link>
      <description>I'd suggest you rip out that style of error handling/reporting and use the tools available from the operating system.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Wed, 15 Sep 2010 21:31:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255418#M40520</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-09-15T21:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255419#M40521</link>
      <description>"it say ERL function is not supported"&lt;BR /&gt;&lt;BR /&gt;Where?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Programs without line numbers will run faster, but then you should use the When Error In/Use, End When contructs.&lt;BR /&gt;&lt;BR /&gt;Look up BASIC/[NO]LINES in BASIC help.</description>
      <pubDate>Thu, 16 Sep 2010 10:04:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255419#M40521</guid>
      <dc:creator>Kerry Gibbings</dc:creator>
      <dc:date>2010-09-16T10:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255420#M40522</link>
      <description>&lt;!--!*#--&gt;ERL (ERror Line) requires using line numbers;  the corresponding functionality without line numbers is the when clause:&lt;BR /&gt;&lt;BR /&gt;when error in&lt;BR /&gt;use&lt;BR /&gt;end when&lt;BR /&gt;&lt;BR /&gt;Without seeing the code Its hard to be specific but&lt;BR /&gt;&lt;BR /&gt;10 on error goto 19000&lt;BR /&gt;20 i% = integer( "AAA", long )&lt;BR /&gt;30 call foo(i%)&lt;BR /&gt;40 goto 32767&lt;BR /&gt;19000 if erl = 20 and err = 52 then print "failed"&lt;BR /&gt;32767 end&lt;BR /&gt;&lt;BR /&gt;without line numbers is:&lt;BR /&gt;&lt;BR /&gt;when error in&lt;BR /&gt;  i% = integer( "A" )&lt;BR /&gt;  call foo(i%)&lt;BR /&gt;use&lt;BR /&gt;  print "failed"&lt;BR /&gt;end when&lt;BR /&gt;&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;&lt;BR /&gt;when error in&lt;BR /&gt;  i%= integer( "A" )&lt;BR /&gt;   call foo(i%)&lt;BR /&gt;use like19000&lt;BR /&gt;&lt;BR /&gt;handler like19000&lt;BR /&gt;   print "Failed"&lt;BR /&gt;end handler&lt;BR /&gt;&lt;BR /&gt;Jonathan</description>
      <pubDate>Thu, 16 Sep 2010 11:52:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255420#M40522</guid>
      <dc:creator>Jonathan Cronin</dc:creator>
      <dc:date>2010-09-16T11:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255421#M40523</link>
      <description>The problem is that you've replaced all the line numbers with labels. The compiler then handles it as a "no line numbers" program and your resultant problem. This is not specific to Itanium.&lt;BR /&gt;&lt;BR /&gt;Putting just one line number would fix this. e.g. if the first line of your program was:&lt;BR /&gt;&lt;BR /&gt;1 ! Dummy line no&lt;BR /&gt;&lt;BR /&gt;it would (should) compile.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Sep 2010 00:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255421#M40523</guid>
      <dc:creator>Ramondo</dc:creator>
      <dc:date>2010-09-17T00:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255422#M40524</link>
      <description>Sorry, you may get it to compile programs with ERLs by putting just one line number in, but you would never get the ERL condition to be true as it would always be 1 (in my example).&lt;BR /&gt;&lt;BR /&gt;The best option as explained above is to replace ERL checks with code that uses WHEN ERROR blocks. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Sep 2010 00:51:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255422#M40524</guid>
      <dc:creator>Ramondo</dc:creator>
      <dc:date>2010-09-17T00:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Porting VAX Basic code to itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255423#M40525</link>
      <description>Thanks it was of good help</description>
      <pubDate>Fri, 17 Sep 2010 10:35:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/porting-vax-basic-code-to-itanium/m-p/5255423#M40525</guid>
      <dc:creator>janaki jeevan patnaik</dc:creator>
      <dc:date>2010-09-17T10:35:14Z</dc:date>
    </item>
  </channel>
</rss>

