× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: RPG IV line numbers
  • From: dhandy@xxxxxxxxxxx (Douglas Handy)
  • Date: Mon, 21 Dec 1998 20:50:58 GMT

Patrick,

>Not being able to tell what line of code the error occurs in is very
>frustrating. 
>
>Any hints or tips?

Thanks to forums like this, IBM listened to enough of us complain to
change the compiler.  Fixes are available via PTF for V3R2 and all
RISC releases.   Although the H spec did not support the Option()
keyword until V4 something, the PTF's enable support for it with prior
releases.

Basically, you add a line of code which says:

     H Option( *SrcStmt )

and the compiler uses your source statement.  Obviously this requires
a recompile after modifying the source.

A related gripe was also addressed by the PTFs.  When debugging, when
you tried to step while positioned on an I/O routine, you had to step
thru each field as it was moved from the buffer.  So when you
remembered to do so, you'd set a breakpoint on the next line and
resume instead.  So they also added support for:

     H Option( *NoDebugIO )

which tells the debugger to step over breaking on all the field
movements.  This can be combined like so:

     H Option( *SrcStmt : *NoDebugIO )

or in the opposite order.  With V4 releases which already had the
Option() keyword, they added these two values to the list.

The PTF's however, do not change the SEU syntax checking.  So SEU will
complain even though it compiles successfully.  You can live with it,
or you can consider putting the H Option( *SrcStmt : *NoDebugIO ) in a
separate member and using /COPY to include it in each program.  This
circumvents the SEU syntax check syndrome.

Anyway, these PTF's were first made available last Feb, and these
numbers may have been superceeded since then, but check out the
following PTF numbers depending on your release:

         Compiler (product 57xxRG1) | Runtime (product 57xxSS1)
         -------------------------- | ------------------------
 V3R2    SF46001                    | SF45788
 V3R6    SF45749                    | SF45430
 V3R7    SF46327                    | SF46321
 V4R1    (use V3R7 compiler + PTF)  | SF46462
 V4R2    SF45191                    | SF45189

I *think* the V4R3 compiler supports the options without PTFs.

Doug
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.