Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts How to build one file from two input ... daniele DFSORT/ICETOOL 5 Tue Feb 27, 2018 6:45 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us