IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Original Allocation & Actual Allocation - LISTDSI proble


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tangentray

New User


Joined: 30 Dec 2006
Posts: 20
Location: Kolkata, India

PostPosted: Thu Oct 22, 2009 11:04 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 23, 2009 12:17 am
Reply with quote

What does the LISTDSI value of SYSUSED give you?
Back to top
View user's profile Send private message
tangentray

New User


Joined: 30 Dec 2006
Posts: 20
Location: Kolkata, India

PostPosted: Fri Oct 23, 2009 12:12 pm
Reply with quote

Code:

SYSUNITS: TRACK
SYSPRIMARY: 1000
SYSSECONDS: 1000
SYSUSED: 16000 
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Oct 23, 2009 3:46 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Oct 23, 2009 4:29 pm
Reply with quote

Maybe DSINFO would be more suited to your desires.
Back to top
View user's profile Send private message
tangentray

New User


Joined: 30 Dec 2006
Posts: 20
Location: Kolkata, India

PostPosted: Mon Oct 26, 2009 10:48 pm
Reply with quote

Thanks a lot expat.
DSINFO suites my needs better.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Dynamic file allocation using JCL JCL & VSAM 8
This topic is locked: you cannot edit posts or make replies. Findrep - an identifier to mark the a... SYNCSORT 17
No new posts ADDMONS function - conclusion after o... SYNCSORT 1
No new posts ISPF 3.4 edit of a ps file, disp use... TSO/ISPF 3
Search our Forums:

Back to Top