Joined: 30 Dec 2006 Posts: 20 Location: Kolkata, India
I am using LISTDSI through a REXX program to get the size of datasets. The SYSUNITS, SYSPRIMARY and SYSSECONDS varaibles help me to get to my objective.
Now in our shop we have SAS installed. Many allocations are done through SAS itself (LIBNAME / FILENAME statments) instead of JCL DD DSN. In that case if the allocation is insufficient, SAS system dynamically allocates more space as the program runs, which would otherwise have abended if used with DD DSN.
The problem is in such cases the LISTDSI command gives the original allocation instead of the actual one. For example say a file jas been allocated as:
When you use LISTDSI to obtain information about a FILE, LISTDSI will only
return information about the first data set in the FILE, if the file
consists of a concatenation of more than one data set. Likewise, if the
FILE points to a multi-volume data set, LISTDSI can only return
information about the first volume, and will not be able to detect that
the data is multi-volume.