Sign in

docs RPG Reference

Program Described

Program Described

For program described files, entries on the output specifications can be divided into two categories:

  • Record identification and control (positions 7 through 51)

    Figure 1. Program Described Record Layout

    *.. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... 8 ...+... 9 ...+... 10
    OFilename++DF..N01N02N03Excnam++++B++A++Sb+Sa+.............................Comment+++++++++++++
    OFilename++DAddN01N02N03Excnam++++.........................................Comment+++++++++++++
    O.........And..N01N02N03...................................................Comment+++++++++++++
  • Field description and control (positions 21 through 80). Each field is described on a separate line, below its corresponding record identification entry.

    Figure 2. Program Described Field Layout

    *.. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... 8 ...+... 9 ...+... 10
    O..............N01N02N03Field+++++++++YB.End++PConstant/editword/DTformat++Comment+++++++++++++
    O..............................................Constant/editword-ContinutioComment+++++++++++++