View previous topic :: View next topic
|
Author |
Message |
karthik-guruprasad
New User
Joined: 17 Apr 2007 Posts: 6 Location: chennai
|
|
|
|
I have n no of PDS.I want to write a REXX code to find out those datasets which have crossed more than 95% used .could any one help me in giving out this code.The ouput should be when I give TSO PDS i should get
PDS %used
cec.karthik.pds 96 |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
The LISTDSI function populates some variables with info regarding the dataset in question. For more details, please refer to the fine manual.
In the same manner, you can use the ISPF service DSINFO.
O. |
|
Back to top |
|
|
karthik-guruprasad
New User
Joined: 17 Apr 2007 Posts: 6 Location: chennai
|
|
|
|
the 3.4 option gives %used but my requirement is to find the datsets which have %used greater than 95%.How to code in rexx.The listdsi command gives information only when it is allocated in tracks.But when comes to cylinder I am not able to get the required calculation. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DCOLLECT records show the usage and allocation in Kb, but can certainly be a real pain to interpret. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You can save the data returned via 3.4 and use it to check the %used. |
|
Back to top |
|
|
karthik-guruprasad
New User
Joined: 17 Apr 2007 Posts: 6 Location: chennai
|
|
|
|
How could I do that??some sample code???? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you are in 3.4 and have produced a dataset list, you can create a file of that list by typing "SAVE my.filelist" in the command line. A file named my.filelist with the high-level node of either your id or your prefix (depending on how your site is set up) will be created. You can use this file as input to other processes to get what you want.
The "my.filelist" may be any valid dsn but make sure it is a new name rather than an existing one.
Expat - cross-topic harrassment? heh heh heh |
|
Back to top |
|
|
|