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

Status Code 01217

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

An explicit OPEN or CLOSE operation failed, commonly because the file, member, or device doesn't exist, the user lacks authority to it, or it's already held *EXCL by another job.

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

Condition

An explicit OPEN or CLOSE operation failed, commonly because the file, member, or device doesn't exist, the user lacks authority to it, or it's already held *EXCL by another job.

Fix

Use the E extender or a MONITOR block around the OPEN/CLOSE and inspect %STATUS/%ERROR to get the real cause, then confirm the object exists, isn't exclusively locked elsewhere, and the profile has the needed authority.

Related file status code