How do I use the listdsi function in Rexx?

How do I use the listdsi function in Rexx?

The function call is replaced by a function code that indicates whether the call was successful. The LISTDSI function can be used only in REXX execs that run in the TSO/E address space. To retrieve the attribute information, include the data set name within parentheses after LISTDSI.

Where is the attribute information stored in Rexx?

The attribute information is stored in variables, which can be displayed or used within instructions. The function call is replaced by a function code that indicates whether the call was successful. The LISTDSI function can be used only in REXX execs that run in the TSO/E address space.

What is the function of the listlistdsi?

LISTDSI returns one of the following function codes that replace the function call, and retrieves information about a data set’s allocation, protection, and directory and stores it in specific variables. Table 1 shows the function codes that replace the function call.

Why does listdsi issue a RACF code of 0?

As part of its processing, LISTDSI issues a RACF authority check against the provided data set which will cause a security violation to occur if the user does not have at least READ access to the data set. RACF does not issue an ICH408I message due to message suppression requested by LISTDSI, and therefore LISTDSI issues a return code of 0.

Can I use listdsi to obtain information about a data set?

You can use LISTDSI to obtain information about a data set that is available on DASD. LISTDSI does not directly support data that is on tape. LISTDSI supports generation data group (GDG) data sets when using absolute generation names, but does not support relative GDG names. LISTDSI does not support hierarchical file system (HFS) data sets.

What data does listdsi store in VSAM?

If you use LISTDSI to retrieve information about a VSAM data set, LISTDSI stores only the volume serial ID (in variable SYSVOLUME), the device unit (in variable SYSUNIT), and the data set organization (in variable SYSDSORG).

You Might Also Like