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
 

 

Files additonal qualifier

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

New User


Joined: 25 Feb 2006
Posts: 38
Location: chennai-india

PostPosted: Wed Jul 20, 2011 8:34 am    Post subject: Files additonal qualifier
Reply with quote

For example - In 3.4 if you give partial file name - Ex SHANK.REF it will provide below results
SHANK.REF.FILE1
SHANK.REF.FILE2
SHANK.REF.PORT etc...

Similar way is there any command in REXX where if you give partial ds name it expands and finds out all datasets ????
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: Wed Jul 20, 2011 10:27 am    Post subject: Reply to: Files additonal qualifier
Reply with quote

Try using the Catalog Search Interface (CSI) utility program. There's a REXX example in 'SYS1.SAMPLIB(IGGCSIRX)'.

Or, of course, you might try calling the ISPF LMDLIST Service.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Jul 20, 2011 11:07 am    Post subject:
Reply with quote

You can use Listcat
Code:

/*REXX*/                                                     
HLQ=SHANK.REF.                                 
DS=STRIP(HLQ||"*")                                           
"ISPEXEC LMDINIT LISTID(IDV) LEVEL(&DS)"                     
DO FOREVER                                                   
"ISPEXEC LMDLIST LISTID("IDV") DATASET(DSVAR)"               
IF RC = 0 THEN SAY DSVAR                                     
ELSE LEAVE                                                   
END                                                           
"ISPEXEC LMDLIST LISTID("IDV") OPTION(FREE)"                 

or you can also use ISMF DATA SET LIST IN BATCH -
Sample job - http://www.servframe.com/wp-content/uploads/2011/01/ISMFDCDS.jcl_.txt[/quote]
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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm


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