RNF3785

The TOFILE keyword is valid only in a cycle module.

20

Cause . . . . . : The TOFILE keyword indicates that the array or table will be written out when the RPG program cycle ends, but this module does not implement the RPG program cycle when the MAIN or 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 MAIN or NOMAIN keyword from the Control specification. Compile again.