RPG (IBM i / AS/400) · Runtime error

RNX0112

What does RNX0112 mean in RPG (IBM i / AS/400)?

A date, time, or timestamp field read from a database record contains a value that is not valid for its type, most often a null-capable date column that actually holds a null, or a record written by a different program that did not populate the field the way this one expects.

RNX0112IBM i / OS/400 · ILE RPG

Condition

A date, time, or timestamp field read from a database record contains a value that is not valid for its type, most often a null-capable date column that actually holds a null, or a record written by a different program that did not populate the field the way this one expects.

Fix

Check whether the column is null-capable and add explicit null handling (%NULLIND or a null indicator array) before referencing it as a date, rather than assuming every date field in an existing file is always populated.

Pending source verification. Not yet checked against official documentation.

Related runtime error