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

Status Code 00013

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

A WRITE to a subfile record format failed because the subfile already holds its maximum number of records, as bounded by SFLSIZ (or the runtime page limit for that subfile).

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

Condition

A WRITE to a subfile record format failed because the subfile already holds its maximum number of records, as bounded by SFLSIZ (or the runtime page limit for that subfile).

Fix

Raise SFLSIZ/SFLPAG if the design allows it, or trap %STATUS = 00013 on the WRITE and warn the user or page off existing records before adding more.

Related file status code