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 Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Finding difference between two PS fil... Vignesh Sid SYNCSORT 5 Mon Oct 30, 2017 1:13 pm
No new posts NDM 300 files from mainframe to linux shreya19 All Other Mainframe Topics 2 Thu Oct 26, 2017 11:40 am

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