EXTPGM must be specified on the prototype for the MAIN() procedure.
30
Cause . . . . . : EXTPGM must be specified on the prototype of the procedure named as the main procedure on the Control specification MAIN keyword, since it is intended to be accessed as a program call.