HFZDDTEST command
The HFZDDTEST command can be used to test if a DDname is allocated.
Return codes
The HFZDDTEST command provides the
following return codes:
- 0
- The specified DDname is allocated.
- 4
- The specified DDname is not allocated.
- 8
- Command syntax error. An explanation of the error is written to the HFZTRACE DDname.
Example
/* REXX */
/* Test if the DDname DD1 is allocated */
"HFZDDTEST DD(DD1)"
if RC = 0 then say 'DD1 is allocated'