Sign in

docs RPG Reference

Local Data Area (*LDA)

Local Data Area (*LDA)

The compiler uses the local data area in the following situations:

  • A free-form definition has the DTAARA keyword without a parameter for an unnamed data structure.
  • A fixed-form definition has blanks for the name of the data area data structure (positions 7 through 21 of the definition specification that contains a U in position 23).

To provide a name for the local data area, use the *DTAARA DEFINE operation, with *LDA in factor 2 and the name in the result field or DTAARA(*LDA) on the definition specification.

For an example, see Data Structure Examples