The INFO command returns the data set name, ddname, and data set organization of a currently allocated data set or ddname.
This command has the following format:
ADDRESS OPSDYNAM "INFO keywords" [FILE|DDNAME(ddname) OR DATASET|DSNAME(dsname)] [DELAY] [CMDRESP(type)] [MSG(ON|OFF)] [PATH(pathname)]
(Optional) Defines a currently allocated z/OS ddname for which information should be returned. If the ddname points to a concatenated list of data sets, the INFO function only returns information on the first data set in the concatenation.
(Optional) Defines the name of a currently allocated data set for which information should be returned. This keyword is mutually exclusive with the DDNAME keyword. If the data set name is not enclosed in quotes, then the TSO data set prefix is added to the name. A PDS member name or relative GDG number may be appended to the data set name delimited by matched parentheses.
(Optional) Defines the 1- to 255-character fully qualified name of an HFS or zFS in compatibility mode file. Pathname must begin with a / and include all sub-directory names down to the file name.
The following common keywords may be specified:
(Optional) You may specify the DELAY, CMDRESP, and MSG keywords described in Keywords Common to All ADDRESS OPSDYNAM Commands in this chapter.
Example: OPSDYNAM INFO
The following displays allocation information:
/* Display information about the allocation */
"Info DD(oldrule)"
If rc > 0 The Signal DYNERROR
Say "DDname" opsdd "allocated to" opsdsn "is dsorg" opsdsorg
Return rc
DYNERROR:
Say Sourceline(sigl-1)
Say "OPSDYNAM error RC="rc "Error code="opsercd,
"Info code="opsifcd
Do While Queued() > 0
Pull errsmg
Say errmsg
End
Return rc
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|