Structure of Easytrieve programs

An Easytrieve Program has three sections.

These sections include:
Environment Section
This section lets you alter Easytrieve Compiler options through the PARM statement. Except for Db2-related parameters, this section is ignored by Migration Utility (refer to PARM statement parameters).
Library Section
This section contains the FILE, RECORD and Work Field definitions. This section is fully supported by Migration Utility as described. All exceptions are clearly noted.
Activity Section
This section contains program procedures and statements that compose program processing logic and file I/O events. This section is fully supported by Migration Utility as described. All exceptions are clearly noted.

The Activity Section contains JOB and SORT subsections. There can be multiple JOB and SORT subsections within a single program. Each JOB or SORT subsection may contain one or more REPORT definitions.