HFZDDTEST command

The HFZDDTEST command can be used to test if a DDname is allocated.

Figure 1. Syntax

1 HFZDDTEST DD ( ddname )

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

Figure 2. HFZDDTEST command example
/* REXX */

/* Test if the DDname DD1 is allocated */
"HFZDDTEST DD(DD1)"
if RC = 0 then say 'DD1 is allocated'