IDIDDTEST command

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

Figure 1. Syntax

1 IDIDDTEST DD ( ddname )

Return codes

The IDIDDTEST 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 IDITRACE DDname.

Example

Figure 2. IDIDDTEST command example
/* REXX */

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