ZDSNUM Function: z/OS

Returns a count of the number of data set names that are returned from the ZDSLIST function.
Category: External Files
z/OS specifics: info-item

Syntax

zdsnum(variable name);

Required Argument

variable name
specifies the output variable that is created by ZDSLIST.

Details

Use the following method to invoke the ZDSNUM function:
length xnum 8;
xnum=zdsnum(variable name);

Example

length xdsn $4096;
xdsn=zdslist(‘catlg’, ‘userID.sas.*’, ‘’, ‘’);
length xnum 8;
xnum=zdsnum(xdsn);
The output for ZDSNUM is a numeric SAS variable.