Procedure cannot be exported when it is the MAIN procedure.
30
Cause . . . . . : A procedure specified in the parameter to the MAIN keyword on the Control specification cannot be exported. The EXPORT keyword is ignored.
Recovery . . . : Remove the EXPORT keyword, or change the MAIN specification on the Control spec.