RPG (IBM i / AS/400) · File status code
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).
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).
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.