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
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


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