Sign in

docs RPG Reference

Externally Described

Externally Described

For externally described files, entries on output specifications are divided into the following categories:

  • Record identification and control (positions 7 through 39)

    Figure 1. Externally Described Record Layout

    *.. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... 8 ...+... 9 ...+... 10
    ORcdname+++D...N01N02N03Excnam++++.........................................Comment+++++++++++++
    ORcdname+++DAddN01N02N03Excnam++++.........................................Comment+++++++++++++
    O.........And..N01N02N03Excnam++++.........................................Comment+++++++++++++
  • Field description and control (positions 21 through 43, and 45).

    Figure 2. Externally Described Field Layout

    *.. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... 8 ...+... 9 ...+... 10
    O..............N01N02N03Field+++++++++.B...................................Comment+++++++++++++