HELP — RPG 400 LOCAL DATA (LDA)

5 pts.
Tags:
RPG
RPG/400
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • WoodEngineer
    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.
    6,715 pointsBadges:
    report
  • abhisheka1
    LDA is unique to a job , what do you mean by two LDA's ? please bit  elaborate the problem. 

    385 pointsBadges:
    report
  • YuVaTlv
    Read again what WoodEngineer wrote. Each job have its own LDA, JobA is with LDA-A and JobB is with LDA-B, which is a copy of the LDA-A if jobB was called by JobA
    10 pointsBadges:
    report
  • ToddN2000
    If you need a second dataarea for a job and want to keep it unique so it cannot be used by others, here is my suggestion. Create one in QTEMP. IT will remain active for the job running and will disappear when the job completes. This way there is no maintenance or cleanup.
    12,855 pointsBadges:
    report
  • azohawk
    another issue with passing parms via an LDA to a submitted job is that they are are a pain to troubleshoot to make sure what data is in the LDA.
    565 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following