ZDSXATT Function: z/OS

Returns the number of attributes retrieved by a previous ZDSATTR request.
Category: External Files
z/OS specifics: info-item

Syntax

zdsxatt(variable name);

Required Argument

variable name
specifies the name of the variable that is created by ZDSATTR.

Details

Invoking ZDSXATT

Use the following method to invoke the ZDSXATT function:
length xattrn 8;
xattrn = zdsxatt(variable name);

Processing Specifics

ZDSXATT checks that the input variable is a character variable, and that it contains a zoned decimal count as its first entry. ZDSXATT converts the input variable to a floating-point SAS variable for subsequent use within the DATA step.

Example

length xdsn $4096;
xdsn=zdslist(‘catlg’, ‘userID.sas.*’, ‘’, ‘’);
length xnum 8;
xnum=zdsnum(xdsn);
length xidnm $256;
length xattr $4096;
length xattrn 8;
do i = 1 to xnum;
	   xidnm=zdsidnm(xdsn, i);
	   xattr=zdsattr(xidnm);
	   xattrn=zdsxatt(xattr);
end;
The output format of the ZDSXATT function is a numeric variable that contains an attribute count.