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

Save list of datasets in a file through REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rohitsir

New User


Joined: 21 Aug 2007
Posts: 32
Location: USA

PostPosted: Wed Aug 22, 2007 6:20 pm
Reply with quote

Hi,

Here is my requirement. I want to save all the datasets starting with a particular string, say 'DDX.CN.IA1.*' in a file and i want to do it through REXX.

Like we do 3.4 and then type 'DDX.CN.IA1.*' and press enter, it will give us the list of all the respective datasets. We can do 'SAVE LIST' and save all these dataset names in a sequential file. I want to do this whole thing through REXX.
Back to top
View user's profile Send private message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Wed Aug 22, 2007 6:35 pm
Reply with quote

Hi
The easiest way is to use "LMDLIST" which is described in the ISPF Services book.
You can call ispf sevices through rexx by using:
Address ISPEXEC ....
Check the manuals for details.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Aug 22, 2007 7:22 pm
Reply with quote

Or IDCAMS LISTCAT LEVEL
Back to top
View user's profile Send private message
rohitsir

New User


Joined: 21 Aug 2007
Posts: 32
Location: USA

PostPosted: Wed Aug 22, 2007 7:33 pm
Reply with quote

Thanks Kamran,

LMDLIST works perfectly for my requirement. Thanks a ton.!!!
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Running REXX through JOB CLIST & REXX 13
Search our Forums:

Back to Top