MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to get datasetnames starting with a given pattern

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 315
Topics: 49
Location: Germany

PostPosted: Fri Dec 05, 2008 4:17 am    Post subject: How to get datasetnames starting with a given pattern Reply with quote

Hi all,

how is it possible to get a list of datasetnames starting with a given pattern?

Example:

Pattern is MyUserid.Source.*

and i want to get a list of all dataset names matching this pattern?

How is it possible ?

regards,
bauer
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 315
Topics: 49
Location: Germany

PostPosted: Fri Dec 05, 2008 5:10 am    Post subject: Reply with quote

Ok, i got the solution.

Using IDCAMS with LISTCAT command solves the problem.
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Fri Dec 05, 2008 9:53 am    Post subject: Reply with quote

Hi,

You can use this one also:

Code:
//STEP10  EXEC PGM=IKJEFT1A                         
//SYSPROC   DD DSN=SYS1.**.**,DISP=SHR             
//SYSTSPRT  DD DSN=XXXXXX.LIST.ALL,                 
//             DISP=(NEW,CATLG,CATLG),               
//             UNIT=DISK,SPACE=(CYL,(50,50),RLSE),   
//             DCB=(RECFM=FB,LRECL=133,BLKSIZE=0)   
//SYSTSIN   DD *                                     
%IGGCSIRX                                           
XXXXXX.YYYY.**
/*

_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group