FUNL0142 (Stmterr) statement may not occur outside FOR EACH RECORD loop.

From m204wiki
Jump to navigation Jump to search

This indicates that the FUEL program contains a stmterr statement, and it may only occur within the FOR EACH RECORD loop. You must either delete the stmterr statement or move it inside the FOR EACH RECORD loop.

For example, an UNLOAD statement may only occur within the FOR EACH RECORD loop.