HFZFREE command

The HFZFREE command can be used to unallocate (free) DDnames that might have been allocated using HFZALLOC.

Read syntax diagramSkip visual syntax diagram
Syntax

                   .-,------.      
                   V        |      
>>-HFZFREE--DD--(----ddname-+--)-------------------------------><

Return codes

The HFZFREE command provides the following return codes:
0
Unallocation of all specified DDnames was successful.
4
Unallocation of one or more specified DDnames failed. Explanations of the errors are written to the HFZTRACE DDname.
8
Command syntax error. An explanation of the error is written to the HFZTRACE DDname.

Example

Figure 1. HFZFREE command example
/* REXX */

/* Free the DDnames DD1 and DD2 */
"HFZFREE DD(DD1,DD2)"
if RC = 0 then say 'Success!'