RPG (IBM i / AS/400) · File status code

Status Code 01011

What does Status Code 01011 mean in RPG (IBM i / AS/400)?

On an input operation against a file with multiple record formats, none of the identifying indicators (or key values, for externally described files) on the incoming record matched any record format defined in the program, so RPG could not classify it.

Status Code 01011IBM i / OS/400 · ILE RPG

Condition

On an input operation against a file with multiple record formats, none of the identifying indicators (or key values, for externally described files) on the incoming record matched any record format defined in the program, so RPG could not classify it.

Fix

Check the record-identifying indicator specs or key fields against the actual incoming data, and add an INFSR or MONITOR block so an unrecognized record layout doesn't crash the program outright.

Related file status code