Deleted records

 

The DLTPCT parameter specifies the percentage of deleted records that each physical file member can contain before you want the system to send a message to the system history log (CRTPF, CHGPF, CRTSRCPF, and CHGSRCPF commands).

When a file is closed, the system checks the member to determine the percentage of deleted records. If the percentage exceeds the value specified in the DLTPCT parameter, a message is sent to the history log. (For information about processing the history log, see the Control language topic collection. One reason you might want to know when a file reaches a certain percentage of deleted records is to reclaim the space used by the deleted records. After you receive the message about deleted records, you can run the Reorganize Physical File Member (RGZPFM) command to reclaim the space. You can also specify to bypass the deleted records check by using the *NONE value for the DLTPCT parameter. *NONE is the default for the DLTPCT parameter. REUSEDLT parameter specifies whether deleted record space should be reused on subsequent write operations (CRTPF and CHGPF commands). When you specify *YES for the REUSEDLT parameter, all insert requests on that file try to reuse deleted record space. Reusing deleted record space allows you to reclaim space used by deleted records without having to issue a RGZPFM command. When the CHGPF command is used to change a file to reuse deleted records, it might take a long time to run, especially if the file is large and there are already a lot of deleted records in it. It is important to note the following items:

 

Parent topic:

Specifying physical file and member attributes

 

Related concepts


Reorganizing a physical file member
Reusing deleted records

 

Related reference


Change Physical File (CHGPF) command
Change Source Physical File (CHGSRCPF) command
Create Physical File (CRTPF) command
Create Source Physical File (CRTSRCPF) command