.F/ File description specifications define all files in the program. Refer to
Chapter 5, “File Description Specifications” for a description of the entries on
this specification.
.E/ Extension specifications describe all arrays and tables and indicate how they
are initialized. Refer to Chapter 6, “Extension Specifications” for a
description of the entries on this specification.
.L/ Line counter specifications indicate the length of the overflow lines and the
forms length to be printed on each page for each printer file in the program.
Refer to Chapter 7, “Line Counter Specifications” for a description of the
entries on this specification.
.I/ Input specifications describe data structures, named constants, records, and
fields in the input files and indicate how the records and fields are used by
the program. Refer to Chapter 8, “Input Specifications” for a description of
the entries on this specification.
.C/ Calculation specifications describe calculations to be done by the program
and indicate the order in which they are done. Calculation specifications can
control certain input and output operations. Refer to Chapter 9, “Calculation
Specifications” for a description of the entries on this specification.
.O/ Output specifications describe the records and fields and indicate when they
are to be written by the program. Refer to Chapter 10, “Output
Specifications” for a description of the entries on this specification.
The
RPG/400 language is a position-dependent language. Each entry must start in
a specific column. To represent this, each illustration of RPG/400 code will be in
listing format with a scale drawn across the top. You may find it helpful to use your
RPG/400 Debugging Template (GX21-9129).
This reference contains a detailed description of the individual
RPG/400 specifica-
tions. Each field and its possible entries are described. Chapter 11, “Operation
Codes” describes the operation codes that are coded on the Calculation specifica-
tion, which is described in Chapter 9, “Calculation Specifications.”
In addition, there is information on indicators, the logic cycle, arrays and tables, edit
codes and edit words, file translation, multifile processing, and match fields.
Directives
The compiler directive statements /TITLE, /EJECT, /SPACE, and /COPY allow you to
specify heading information for the compiler listing, to control the spacing of the
compiler listing, and to insert records from other file members during a compile.
The compiler directive statements must precede any arrays, tables, translation
records, and alternate collating sequence records (that is, ** records).
/TITLE (Positions 7-12)
Use the compiler directive /TITLE to specify heading information (such as security
classification or titles) that is to appear at the top of each page of the compiler
listing. The following entries are used for /TITLE:
Positions Entry
7-12 /TITLE
13 Blank
14-74 Title information
2 RPG/400 Reference