Thursday, October 18, 2007

Define data areas in ILE RPG programs

As a good programming practice, define data areas in the D spec. First you have to define a data structure or a variable which has equal length to the data area.



Define the data area in D spec



Use the data area in free format

Cl_run = *blanks;
In *lock *dtaara;
Cl_run = Lastrun;