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

Status Code 00401

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

An IN or OUT operation (or an implicit *LDA/DTAARA data structure) referenced a data area object that doesn't exist in the library being searched.

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

Condition

An IN or OUT operation (or an implicit *LDA/DTAARA data structure) referenced a data area object that doesn't exist in the library being searched.

Fix

Create the data area before running the program, or check that the DTAARA keyword and library qualification point at the correct object, especially after moving code between environments.

Related file status code