View previous topic :: View next topic
|
Author |
Message |
RohithRaj
New User
Joined: 06 Aug 2008 Posts: 13 Location: Hyderabad
|
|
|
|
Hi,
I want to get the 'Dataset Information' of a dataset onto a file to my desktop. (preferabaly notepad). Is there code to get that onto my desktop. I've attached a screen shot of my dataset information. It's named as 'CPEP.CAPACITY.MONTHS'. I want to get 'Allocated Cylinders'., 'Allocated Extents', ' Used Cylinders', 'Used Extents' onto a text file on my desktop. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
RohithRaj,
Try to LISTDSI the dataset and capture the output.
For further details try to search LISTDSI in the forum.
Please search forum for your other requirements
Regds,
Prem |
|
Back to top |
|
|
RohithRaj
New User
Joined: 06 Aug 2008 Posts: 13 Location: Hyderabad
|
|
|
|
Ok, thnx for the reply.
I dont want to goto FTP now. Is there a code to get that information onto a file in the mainframes itself..?
Let the data be expoerted to a member in my dataset.
This is my lib- nbkdvau.source.data
member - info |
|
Back to top |
|
|
RohithRaj
New User
Joined: 06 Aug 2008 Posts: 13 Location: Hyderabad
|
|
|
|
Can you give me the full command of using LISTDSI??? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Check you terminal emulator it may have a macro facility that will let you pick data from the screen and write it to a dataset. Or just use cut and paste. |
|
Back to top |
|
|
RohithRaj
New User
Joined: 06 Aug 2008 Posts: 13 Location: Hyderabad
|
|
|
|
I dont want to cut and paste the information on 28 datasets everyday onto a excel and do the analysis.
If there is a means to get that onto a memebr in my library, I can do the rest. |
|
Back to top |
|
|
RohithRaj
New User
Joined: 06 Aug 2008 Posts: 13 Location: Hyderabad
|
|
|
|
Does LISTDI needs to be in a REXX program???
or is it a line command? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
It's a REXX (or CLIST) function. The only closely related TSO/E commands that I can think of are LISTCAT and LISTDS. |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
Many choices available
- SAVE command in data set list
- LMDLIST loop in Rexx or CLIST
- 'SYS1.SAMPLIB(IGGCSIRX)' and other CSI callers
- LISTCAT (outtrapped or fom IDCAMS)
- other utilities (ISMF, etc)
LMDLIST probably right for you + ispf workstation agent |
|
Back to top |
|
|
RohithRaj
New User
Joined: 06 Aug 2008 Posts: 13 Location: Hyderabad
|
|
|
|
My Dataset is multi volumed (see the screen shot), and when i execute LISTDI, the out put I get is
FUNCTION CODE FROM LISTDSI IS: 4
THE DATA SET NAME IS: CPEP.CAPACITY.MONTHS
VOLUME SERIAL ID IS: 1SCP85
DATA SET ORGANIZATION: PS
PRIMARY ALLOCATION IN SPACE UNITS: 1219
SECONDARY ALLOCATION IN SPACE UNITS 100
THE ALLOCATION IN SPACE UNITS IS: 4300
TRACKS PER CYLINDER FOR THE UNIT IDENTIFIED 15
USED SPACE IS 4300
NUMBER OF EXTENTS ALLOCATED IS 3
So please tell me what code I should use to list all the allocated primary and secondary. |
|
Back to top |
|
|
RohithRaj
New User
Joined: 06 Aug 2008 Posts: 13 Location: Hyderabad
|
|
|
|
here is the attachment. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
RohithRaj wrote: |
here is the attachment. |
DO NOT POST ATTACHMENTS
As like myself, many people can not open them !!! |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2593 Location: Silicon Valley
|
|
|
|
1. Issue LISTCAT command of TSO to get the list of volids.
2. issue LISTDSI function with the optional VOLUME(1SCP85) parameter, for each of the volids that you find.
3. total the space information yourself. |
|
Back to top |
|
|
|