Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

I want to find the %used of a PDS using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
karthik-guruprasad

New User


Joined: 17 Apr 2007
Posts: 6
Location: chennai

PostPosted: Thu Apr 19, 2007 1:25 pm    Post subject: I want to find the %used of a PDS using REXX
Reply with quote

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

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Apr 19, 2007 1:43 pm    Post subject:
Reply with quote

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

New User


Joined: 17 Apr 2007
Posts: 6
Location: chennai

PostPosted: Sat Apr 21, 2007 9:45 pm    Post subject: Re: I want to find the %used of a PDS using REXX
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Apr 21, 2007 10:03 pm    Post subject:
Reply with quote

DCOLLECT records show the usage and allocation in Kb, but can certainly be a real pain to interpret.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Apr 21, 2007 11:33 pm    Post subject:
Reply with quote

Hello,

You can save the data returned via 3.4 and use it to check the %used.
Back to top
View user's profile Send private message
karthik-guruprasad

New User


Joined: 17 Apr 2007
Posts: 6
Location: chennai

PostPosted: Sun Apr 22, 2007 10:58 am    Post subject: Re: I want to find the %used of a PDS using REXX
Reply with quote

How could I do that??some sample code????
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sun Apr 22, 2007 12:45 pm    Post subject:
Reply with quote

Quote:
some sample code????

In deference to one of Dick's comments in another thread, I'll do the code for a fixed price icon_biggrin.gif

The layout of DCOLLECT records can be found here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I230/CCONTENTS?DT=20040628101835

And, if you follow the links supplied by Frank in the SORT forum, there are some examples of how this or something similar can be done.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Apr 22, 2007 9:15 pm    Post subject:
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us