Chapter 16. Calculation Specifications

Calculation specifications indicate the operations done on the data in a program.

Calculation specifications within the main source section must be grouped in the following order:

Calculation specifications for subprocedures include two groups:

Calculations within the groups must be specified in the order in which they are to be done.

Note:
If the keyword MAIN or NOMAIN is specified on the control specification, then only declarative calculation specifications are allowed in the main source section.

You can specify calculation specifications in three different formats:

See Chapter 22. Operation Codes for details on how the calculation specification entries must be specified for individual operation codes.

The calculation specification can also be used to enter SQL statements into an ILE RPG program. See IBM Rational Development Studio for i: ILE RPG Programmer's Guide and the iSeries Information Center database and file systems category for more information.



[ Top of Page | Previous Page | Next Page | Contents | Index ]