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

Files additonal qualifier


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Wed Jul 20, 2011 10:27 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Print report for each record from mul... CA Products 1
No new posts Get two files from one file with diff... DFSORT/ICETOOL 10
This topic is locked: you cannot edit posts or make replies. I HAVE 2 INPUT FILES WITH SAME LAYOUT... COBOL Programming 6
This topic is locked: you cannot edit posts or make replies. Copy list of files from PS to another... CLIST & REXX 11
No new posts JOINKEYS to match two input files on ... DFSORT/ICETOOL 3
Search our Forums:

Back to Top