DFH7021I W    PROGRAM DOES NOT BEGIN WITH A PROCEDURE STATEMENT.

Explanation

The translator has not located a correctly coded PROCEDURE or PROC statement at or near the beginning of a PLI program.

After checking for the existence of a *PROCESS statement at the start of the program, and allowing for the existence of one or more compiler directives such as %INCLUDE, the translator expects to locate a PROCEDURE or PROC statement. Various syntax checks are performed when the statement is located.

This message is issued if either the statement is not found, or a syntax error is found in the statement.

System action

The translator continues processing as normal, but it is probable that the following compile step would fail if allowed to execute.

When the main PROCEDURE statement cannot be located, the translator does not insert an EIB structure into the translated program, which would usually result in errors if the following compiler stage were executed.

User response

Ensure that a correctly coded PROCEDURE statement is coded near the beginning of the program. Only a *PROCESS statement (if required) and compiler directives should be coded before the first PROCEDURE statement.

Module

DFHEIM10

Destination

SYSPRINT



DFHXX7021IW.html | Timestamp icon Last updated: Sunday, 4 June 2017