Program part

A program part defines the central logic in a runtime program.
Program parts have the following characteristics:

For more information about Program parts, see Introduction to Program parts.

Syntax

Syntax for the Program part
programName
The name you assigned to this program.
parameter
You can pass parameters, but only to called programs. For more information, see "Main versus called programs" later in this topic.
statement
Any EGL statement.

Compatibility

Table 1. Compatibility considerations for the Program part
Platform Issue
z/OS® The maximum length of a generated program name is 8 characters.
iSeries® COBOL The name of a generated program has the following maximum lengths:
  • 7 characters for a main program
  • 8 characters for a called program

Feedback