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
 

 

Wanted DSN Information

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
RohithRaj

New User


Joined: 06 Aug 2008
Posts: 13
Location: Hyderabad

PostPosted: Wed Aug 13, 2008 4:14 pm    Post subject: Wanted DSN Information
Reply with quote

Hi Everyone,
I would like to get the dataset information by running a job.
I want all the information that we get once we do 3.2 on a dataset.
so is there a jcl code that i can execute on a dataset and get that dataset information??
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: Wed Aug 13, 2008 4:19 pm    Post subject:
Reply with quote

Do a search for LISTDSI in REXX / ISPF and also take a look at the manuals to see exactly what components of data will be available.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Aug 13, 2008 4:24 pm    Post subject: Reply to: Wanted DSN Information
Reply with quote

Expat, RohithRaj was already given that same advice in the previous topic:

http://www.ibmmainframes.com/viewtopic.php?t=33148&highlight=

I'd like to know why it's being asked again.
Back to top
View user's profile Send private message
RohithRaj

New User


Joined: 06 Aug 2008
Posts: 13
Location: Hyderabad

PostPosted: Wed Aug 13, 2008 4:31 pm    Post subject:
Reply with quote

Hi I have the REXX code, but I am not getting the information that I need.
The code is here:
X = LISTDSI("'CPEP.CAPACITY.MONTHS'")
SAY 'FUNCTION CODE FROM LISTDSI IS: ' X
SAY 'THE DATA SET NAME IS: ' SYSDSNAME
SAY 'VOLUME SERIAL ID IS: ' SYSVOLUME
SAY 'DATA SET ORGANIZATION: ' SYSDSORG
SAY 'PRIMARY ALLOCATION IN SPACE UNITS: ' SYSPRIMARY
SAY 'SECONDARY ALLOCATION IN SPACE UNITS ' SYSSECONDS
SAY 'THE ALLOCATION IN SPACE UNITS IS: ' SYSALLOC
SAY 'TRACKS PER CYLINDER FOR THE UNIT IDENTIFIED ' SYSTRKSCYL
SAY 'USED SPACE IS ' SYSUSED
SAY 'NUMBER OF EXTENTS ALLOCATED IS ' SYSEXTENTS


I want to know if there is JCl code which I could submit like any job and get the output on spool.?
The above code is in REXX, and its not displaying the total allocated cyliders and used cylinders for a dataset that spans across multiple volumes.
Mu CPEP.CAPACITY.MONTHS file spans across 10 volumes and has
Allocated cyliders: 5600
Used: 5425
Volumes occupied is 4. (declared total volume to be used was 10).
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Aug 13, 2008 4:45 pm    Post subject:
Reply with quote

Hi,

Does this suffice ..

Code:
//STEPX EXEC PGM=IKJEFT01,               
// PARM='LISTDS ''I.AM.DSN''' 
//SYSTSPRT DD SYSOUT=*                   
//SYSOUT   DD SYSOUT=*                   
//SYSTSIN DD DUMMY                       
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: Wed Aug 13, 2008 4:59 pm    Post subject:
Reply with quote

For multi volume I would use DCOLLECT data and REXX to interpret it.
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 Obtaining file information pahiker COBOL Programming 25 Tue Sep 27, 2016 7:25 pm
No new posts Need information on COBOL MOVE CORRES... subratarec COBOL Programming 10 Tue Jun 28, 2016 10:38 pm
No new posts Passing information through JCL as in... Pia Baruah JCL & VSAM 5 Wed May 25, 2016 2:22 pm
No new posts Extracting Information from DD Statem... Charles Wolters All Other Mainframe Topics 7 Wed Apr 13, 2016 10:21 pm
This topic is locked: you cannot edit posts or make replies. Job Offer: Information systems consu... Express Mainframe Jobs 0 Thu Mar 10, 2016 7:18 pm


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