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

Wanted DSN Information


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Aug 13, 2008 4:19 pm
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

Global Moderator


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

PostPosted: Wed Aug 13, 2008 4:24 pm
Reply with quote

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

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
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

Superior Member


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

PostPosted: Wed Aug 13, 2008 4:45 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Aug 13, 2008 4:59 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Extract all the TWS scheduler informa... IBM Tools 1
No new posts Table Information - DB2 DB2 1
No new posts Remove additional information in SUPE... TSO/ISPF 10
This topic is locked: you cannot edit posts or make replies. Control-M Information. CLIST & REXX 1
Search our Forums:

Back to Top