HP RPG/XL Programmer's Guide (30318-90001)

8- 18
Communicating Data
A Local Data Area File (LDAFILE) is a special RPG file that you can use
to pass data to other programs and to receive data from them. You can
use an LDA file in a program without entering a File Description
Specification for it. An LDA is defined in an Input Specification as a
User Data Structure.
RPG loads the LDA data into your program when it starts executing and
that data is available at the first cycle (1P) output. When your program
ends, the LDA data is written back to the LDA file automatically.
You create an LDA using the RPGINIT utility (see the
RPG Utilities
Reference Manual
).
Chapter 5 discusses LDAs in the context of data structures. Refer to
Figure 5-12 and Figure 5-13 for an example of how to use LDAs.