Timothy Quilling

person wearing suit and smiling

Message CPA4072

A common message to receive on the AS/400 IBMi system while doing a routine task is CPA4072, "Maximum number of records reached for file" with the problematic file listed.

You can think of these file objects as tables which have a predetermined number of rows. When we attempt to add more records and reach the limit, the CPA4072 message can be triggered. It will halt the system until a response is given about what to do to recover from the error.

My recommended course of action if you're not familiar with the job or file triggering the message would be to respond "999999" which will increase the number of records in the file by 999,999.

Alternatively, if you recognize the triggering job or file, you could set the max records parameter (MAXRCDS) to the *NOMAX value by replying with "NOMAX". This will allow the file to continue to grow without a limitation. You may want to be cautious about your disk space usage -- if the job editing this file is runaway, you may allow it to fill your storage capacity.

After giving any response to the message, the job will continue to run and the system will be back to normal.