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



Craig,
L3 (and L2 and L1) is set to on when the value in at least one of the L3
fields changes.
Regards,
Leo
On Feb 2, 2018 12:45, Craig Pelkie <craig@xxxxxxxxxx> wrote:

I'm working with some S/36 RPG II code shown below. I can "sort of"
understand the repeated definition of the field in column 66, to have
more
than one name for the same byte (although the field names in column 66
are
not otherwise used in the program).

I am unclear why the L3 indicator is defined more than once for the
fields.
It seems to me that a single definition of L3 would work the same.

Is this some level break idiom that I missed or am not remembering? The
programs are otherwise OK in terms of being straightforward to
understand
and work with (given that they are RPG II), so I think the original
programmer must have had some specific reason for coding like this.

<code>

IPRDIST NS 03 1 CP 2 CR 62
C3

I/COPY PAYLIB/QS36SRC,PRDIST

I 66 660GL2
L3

I 66 660GL2A
L3

I 66 660GL2B
L3

I 66 660GL2C
L3

I 66 660GL2D
L3

I 67
700DETAILL2

I 62 650GL1
L1

I 71 760DRRN

</code>

Craig Pelkie

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

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.