The TOFILE keyword is not valid when the module does not have a main procedure.
20
Cause . . . . . : The TOFILE keyword indicates that the array or table will be written out when the main procedure ends, but this module does not have a main procedure. A module does not have a main procedure when the NOMAIN keyword is specified on the Control specification. The TOFILE keyword is ignored.
Recovery . . . : Remove the TOFILE keyword from the Definition specification, or remove the NOMAIN keyword from the Control specification. Compile again.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.