%LDA is a special variable that can be used to specify Local Data Areas for IBM i (AS/400) jobs.
The following format can be used when specifying an expression to assign a value to job submission variable %%LDA for a job:
%%LDA[_startpos[_length] [_dec]]=Variable_exp
EXAMPLE: Assuming that the system date is December 15, the following expression:
%%LDA_2_3=%%DAY
is submitted to IBM i (AS/400) as:
CHGDTAARA *LDA(2 3) VALUE(15)
The following expression inserts the packed value of 00123.40 into the LDA starting in position 11 for a decimal length of 7 (Actual Packed length of 4):
%%LDA_11_7_2=123.4
Parent Topic |