True, but James didn't say they were in different jobs.

I use a copy book for my LDA definitions, which starts out like this:

D UDS DTAARA(*LDA)
D L$PREF 1 1A
D L$CONO 2 3S 0
D L$DVNO 4 5S 0

There is no IN or anything else involved. The cycle (whoo hoo!) does all of that for you, James. As soon as the program fires up, L$PREF, etc., are available to the program with whatever value was placed in it. Such that, for example, the very first instruction in the program could be:

IF l$pref = 'X';
(do stuff)
ENDIF;

I recommend a copy book for the LDA because I've seen too many people screw up the start and end positions and bite themselves in the tush. Plus, for us lazy programmers it's less keying.

Jerry C. Adams
IBM System i Programmer/Analyst
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Tommy.Holden@xxxxxxxxxxxxxxxxxxxxx
Sent: Tuesday, August 26, 2008 12:35 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Stuck on accessing the LDA -- manuals no help so far

if the programs run in different jobs there's no way to communicate via
LDA. each job has it's own LDA.

Thanks,
Tommy Holden



From:
James Lampert <jamesl@xxxxxxxxxxxxxxxxx>
To:
rpg400-l@xxxxxxxxxxxx
Date:
08/26/2008 12:30 PM
Subject:
Stuck on accessing the LDA -- manuals no help so far



Can somebody point me in the direction of an example of two ILE RPG
programs, neither of which calls the other, communicating with each
other via the Local Data Area?

Preferably without doing an IN on all *DTAARAs known to the program?

When I RTFM on this one, all it does is make me go cross-eyed.

--
James H. H. Lampert
Touchtone Corporation

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



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


This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2019 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].