View previous topic :: View next topic
|
Author |
Message |
RohithRaj
New User
Joined: 06 Aug 2008 Posts: 13 Location: Hyderabad
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
RohithRaj
New User
Joined: 06 Aug 2008 Posts: 13 Location: Hyderabad
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
For multi volume I would use DCOLLECT data and REXX to interpret it. |
|
Back to top |
|
|
|