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

Dataset information


IBM Mainframe Forums -> TSO/ISPF
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 06, 2008 7:22 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Wed Aug 06, 2008 7:33 pm
Reply with quote

I don't know how your site configures your desktops, so I can't comment as to the availability of FTP services.

You might want to use the ISPF Transfer Option (ISPF Option 3.7).
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Wed Aug 06, 2008 7:37 pm
Reply with quote

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 icon_smile.gif


Regds,
Prem
Back to top
View user's profile Send private message
RohithRaj

New User


Joined: 06 Aug 2008
Posts: 13
Location: Hyderabad

PostPosted: Wed Aug 06, 2008 7:38 pm
Reply with quote

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
View user's profile Send private message
RohithRaj

New User


Joined: 06 Aug 2008
Posts: 13
Location: Hyderabad

PostPosted: Wed Aug 06, 2008 7:51 pm
Reply with quote

Can you give me the full command of using LISTDSI???
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 06, 2008 7:52 pm
Reply with quote

LISTDSI TSO/E REXX function or, the ISPF DSINFO Service.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Aug 06, 2008 7:54 pm
Reply with quote

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
View user's profile Send private message
RohithRaj

New User


Joined: 06 Aug 2008
Posts: 13
Location: Hyderabad

PostPosted: Wed Aug 06, 2008 7:56 pm
Reply with quote

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
View user's profile Send private message
RohithRaj

New User


Joined: 06 Aug 2008
Posts: 13
Location: Hyderabad

PostPosted: Wed Aug 06, 2008 8:08 pm
Reply with quote

Does LISTDI needs to be in a REXX program???
or is it a line command?
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 06, 2008 8:11 pm
Reply with quote

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
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Wed Aug 06, 2008 9:22 pm
Reply with quote

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
View user's profile Send private message
RohithRaj

New User


Joined: 06 Aug 2008
Posts: 13
Location: Hyderabad

PostPosted: Fri Aug 08, 2008 4:59 pm
Reply with quote

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
View user's profile Send private message
RohithRaj

New User


Joined: 06 Aug 2008
Posts: 13
Location: Hyderabad

PostPosted: Fri Aug 08, 2008 5:00 pm
Reply with quote

here is the attachment.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Aug 08, 2008 5:12 pm
Reply with quote

RohithRaj wrote:
here is the attachment.


DO NOT POST ATTACHMENTS

As like myself, many people can not open them !!!
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Aug 08, 2008 9:38 pm
Reply with quote

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
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top