View previous topic :: View next topic
|
Author |
Message |
tangentray
New User
Joined: 30 Dec 2006 Posts: 20 Location: Kolkata, India
|
|
|
|
Hi there,
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:
Code: |
FILENAME FLATW1 "ABC.DE000000.PQR.SAS.CS2.M&MEAS"
DISP=(NEW,CATLG,DELETE) RECFM=FB LRECL=724 BLKSIZE=0
SPACE=(TRK,(1000,1000),RLSE);
|
LISTDSI gives me:
Code: |
SYSUNITS: TRACK
SYSPRIMARY: 1000
SYSSECONDS: 1000
|
A simple 'S' against the dataset gives me:
Code: |
General Data Current Allocation
Management class . . : EUCML2 Allocated tracks . : 71,569
Storage class . . . : EUC Allocated extents . : 72
Volume serial . . . : DHF917 +
Device type . . . . : 3390
Data class . . . . . : NULLDC Current Utilization
Organization . . . : PS Used tracks . . . . : 71,569
Record format . . . : FB Used extents . . . : 72
Record length . . . : 724
Block size . . . . : 27512
1st extent tracks . : 1000
Secondary tracks . : 1000
Data set name type : SMS Compressible : NO
|
Please note that difference between 1st extent tracks, Secondary tracks and Allocated tracks .
Is there a way in which I can get the actual usage instead of the original allocation?
Thanks in advance |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
What does the LISTDSI value of SYSUSED give you? |
|
Back to top |
|
|
tangentray
New User
Joined: 30 Dec 2006 Posts: 20 Location: Kolkata, India
|
|
|
|
Code: |
SYSUNITS: TRACK
SYSPRIMARY: 1000
SYSSECONDS: 1000
SYSUSED: 16000
|
|
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
Quote: |
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.
|
Gerry |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Maybe DSINFO would be more suited to your desires. |
|
Back to top |
|
|
tangentray
New User
Joined: 30 Dec 2006 Posts: 20 Location: Kolkata, India
|
|
|
|
Thanks a lot expat.
DSINFO suites my needs better. |
|
Back to top |
|
|
|