HFZDDTEST command

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

Read syntax diagramSkip visual syntax diagram
Syntax

>>-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 1. HFZDDTEST command example
/* REXX */

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