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
 

 

Clean up datasets thru REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sathiya_09

New User


Joined: 07 Dec 2007
Posts: 2
Location: chennai

PostPosted: Fri Dec 21, 2007 6:42 pm    Post subject: Clean up datasets thru REXX
Reply with quote

Hi

I need a REXX tool which can report the list of datasets provided the higher qualifier or even more than one qualifier.

Also can we get the name of the user who actually created a dataset(thru REXX)?

Thanks!
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Fri Dec 21, 2007 7:13 pm    Post subject: Re: Clean up datasets thru REXX
Reply with quote

sathiya_09 wrote:
I need a REXX tool which can report the list of datasets provided the higher qualifier or even more than one qualifier.


There is nothing in REXX that can provide what you need.

You can, however, write a program that uses the TSO command LISTCAT,
or the ISPF Service LMDLIST.

sathiya_09 wrote:
Also can we get the name of the user who actually created a dataset(thru REXX)?


See this FAQ on topics not eligible for discussion.
Back to top
View user's profile Send private message
Ganesh.Deokar

New User


Joined: 30 Sep 2005
Posts: 26
Location: Buffalo,NY

PostPosted: Fri Dec 21, 2007 8:02 pm    Post subject:
Reply with quote

You can get a list of all cataloged datasets providing a HLQ or upto 2 levels. You need to use listcat and outtrap funcations.

Here is the sample:

Code:
/*REXX*/
address tso             
qual= 'USERID'           
x = outtrap(var.)       
"listcat level('"qual"')"
do a = 1 to var.0 by 2   
   say word(var.a,3)     
end                     
exit       
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm


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