Extending the file boundary

After file creation time, the size of a file can be extended. If a file status 0Q is received for a file, you may need to add more records to the file before processing it. You can use the INZPFM (Initialize Physical File Member) command to add deleted records to the file.

For example, suppose you create a file of 10 000 records with 3 increments of 1 000 records each:
  1. You initialize the (first 10 000) records.
  2. You realize you need to store more data. So, you run the INZPFM command with the RECORDS(*DLT) option again, until you have all 13 000 records initialized.
  3. You receive a requirement to store even more data - but you have already used up all 13 000 records! If you run the INZPFM command again, you will receive an interactive error message (of severity 99) prompting you either to
    1. Cancel the INZPFM request
    2. Go ahead with the request (say, initialize another 1 000 records).
  4. If you choose the second option in the previous step, you now have 14 000 initialized records. You have thus increased the size of the file past the previously defined maximum.