IDIDDTEST command
The IDIDDTEST command can be used to test if a DDname is allocated.
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
/* REXX */
/* Test if the DDname DD1 is allocated */
"IDIDDTEST DD(DD1)"
if RC = 0 then say 'DD1 is allocated'