FREE (Free Disk Area) Macro

The macro is used in conjunction with the HOLD=YES option of a DTFxx macro. It frees a portion of a disk volume that is being held under disk record (track) protection.

On a CKD device, that protected portion is a track; on an FBA device, it is a number of contiguous FBA blocks. On an FBA device, or on a DTFSD or DTFDI file that is assigned to a CKD disk, the FREE macro is treated as a null operation; all holding and freeing of FBA block ranges or CKD tracks for DTFSD and DTFDI are performed implicitly by LIOCS.

The same track (or blocks) can be held more than once without an intervening FREE if the hold requests are from the same task. The same number of FREEs must be issued before the track (or block) is completely freed. However, a task is terminated if more than 16 hold requests are recorded without an intervening FREE, or if a FREE is issued to a file that does not have a hold request for that track (or block). For situations that require the use of the FREE macro, refer to the Using z/VSE Macro Support.

Format

Read syntax diagramSkip visual syntax diagramnameFREEfilename(1)

Requirements for the caller

AMODE:
24
RMODE:
24
ASC Mode:
Primary

Parameters

filename | (1)
This operand is the same as the name you specified in the DTFxx macro for the file.