Procedure-interface definition only allowed in main source section in a cycle module.
30
Cause . . . . . : A procedure-interface definition is not valid for the main source section when a MAIN or NOMAIN keyword is specified on the Control specification. The procedure-interface definition is ignored.
Recovery . . . : Remove the procedure-interface definition, or remove the MAIN or NOMAIN keyword from the Control specification. Compile again.