The operation entry is not allowed in the main source section in a non-cycle module.
30
Cause . . . . . : The RPG Program Cycle is not in effect when a MAIN or NOMAIN keyword is specified on the Control specification, so only PLIST, PARM, KLIST, KFLD and DEFINE declaration operations are allowed in the Calculation specifications of the main source section. The specification is ignored.
Recovery . . . : Remove the incorrect Calculation specification, or remove the MAIN or NOMAIN keyword from the Control specification. Compile again.