Hi,
i've heard about an object named *LDA
I've been told that it was a data area, and that it was used like a data area in CL programs.
How can i read, write or update data of *LDA from RPG400 program ?
Yes there is, and it is a wonderful thing.. I am sure othere here will show you different ways to use the LDA (Local Data Area). but here is just one,, starting first with CL, and then going to RPG.
LDA has been used by AS400 since it was introduced. Actually now I remember this function was already in S/34, s/36 and a s/38 which was the forerunner of AS400. LDA is mostly used as common parametric(variables) repository in which several programs can share it's contents and update it. Sometimes we used it as run controls for batch processing. Even today's programming this function is still in use. the first time I used it was in conjunction with system variables. I created a program such that when electricity is cut off the standby generator's software will send a message to AS400(system variables) that electricity is down and needs to be IPLed accordingly. This also gets phone numbers of on-call personell(from LDA) and dial out an emergency notification.
This gives us time to call operators to do a controlled IPL or we do it if we can access AS400 from home.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.