This function issues the IBM macro DEVTYPE SVC (with the DEVTAB and RPS options) and return the 24-byte binary results.
data = DEVTYPE(ddname)
Parameters
24 bytes of data or error text. The format of the returned data is that of the DEVTYPE SVC with DEVTAB and RPS options specified. Further information can be found in the IBM guide, System Data Administration (GC26-4010).
DDname on which the DEVTYPE is issued.
ARG 1 MISSING OR INVALID
DDNAME NOT FOUND
Example
x = devtype('SYSUT1') /* Check for allocated file */ if rc = 120 then do /* Perform if DDNAME not allocated */ say 'SYSUT1 not allocated' end
Copyright © 2014 CA Technologies.
All rights reserved.
|
|