5 pts.
Q:
HELP -- RPG 400 LOCAL DATA (LDA)
Can i usr tow lda (local data area) in one CL program that calls an RPG program?
if so please help with code illustations
thanx
ASKED: Jul 30 2009  8:54 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
26065 pts.
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • Bookmark and Share
The LDA is a unique data area attached to a job
Type DSPDTAARA to see the one attached to your job.

The CL programs can use or change values in that data area with the
RTVDTAARA or CHGDTAARA

The RPG or RPGLE programs can use the local data area and or change it.

Here is info on RPGLE
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/books_web/c0925086670.htm

Phil
Last Answered: Jul 30 2009  9:14 PM GMT by Philpl1jb   26065 pts.
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

WoodEngineer   2740 pts.  |   Jul 31 2009  3:39PM GMT

One handy feature of the LDA is that it is copied to a submitted job. By that I mean that when job A submits job B, the LDA in job B is a duplicate and separate copy of job A’s LDA. At this point job B can change the LDA without effecting job A’s LDA.

Warning: Some systems use the LDA to submit parms to a called program. We find this to be unreliable.