Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Original Allocation & Actual Allocation - LISTDSI proble

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Original Allocation & Actual Allocation - LISTDSI proble
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: 7936
Location: Bellevue, IA

PostPosted: Fri Oct 23, 2009 12:17 am    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Fri Oct 23, 2009 3:46 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Oct 23, 2009 4:29 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Dataset Allocation error with RC 12 Sumeendar CLIST & REXX 4 Wed Jul 08, 2015 1:12 pm
No new posts Error in Dynamic Allocation of dataset amitc23 COBOL Programming 3 Wed Mar 11, 2015 1:11 pm
No new posts Dynamic allocation information retrei... steve-myers PL/I & Assembler 1 Wed Dec 10, 2014 7:03 pm
No new posts Matching files, retaining original so... Andy N SYNCSORT 6 Tue Sep 09, 2014 3:19 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us