5 pts.
 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

Software/Hardware used:
ASKED: July 30, 2009  8:54 PM
UPDATED: July 31, 2009  3:39 PM

Answer Wiki:
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 Wiki Answer Submitted:  July 30, 2009  9:14 pm  by  philpl1jb   44,220 pts.
All Answer Wiki Contributors:  philpl1jb   44,220 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

 5,525 pts.