× 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.



Hi Everyone,

Ever since the header option *SRCSTMT was available I've been using it with
the warm fuzzy feeling that as the RPGLE manual states:

"| If *SRCSTMT is specified, statement numbers for the listing are generated
 | from the source ID and SEU sequence numbers as follows:

 |   stmt_num = source_ID * 1000000 + source_SEU_sequence_number"

As it turns out, this is not quite what I expected.  I was assuming that
"source_SEU_sequence_number" referred to the SRCSEQ field in the source
file, but in fact it's the statement number count as the compiler goes
through the source.

I discovered this when I was trying to debug a program with the
aforementioned header, and the debug source statement #'s did not match the
source member I was looking at.  After checking the source date, time and
source file, I finally noticed that the previous programmer had not
resequenced the source member after removing a couple of statements.

Still lots of fun things to learn...

Peter Dow
Dow Software Services, Inc.
909 793-9050 voice
909 522-3214 cellular
909 793-4480 fax




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.