MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
bauer Intermediate Joined: 10 Oct 2003 Posts: 315 Topics: 49 Location: Germany
Posted: Fri Dec 05, 2008 4:17 am Post subject: How to get datasetnames starting with a given pattern
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
bauer Intermediate Joined: 10 Oct 2003 Posts: 315 Topics: 49 Location: Germany
Posted: Fri Dec 05, 2008 5:10 am Post subject:
Ok, i got the solution.
Using IDCAMS with LISTCAT command solves the problem.
Back to top
Anuj Dhawan Intermediate Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
Posted: Fri Dec 05, 2008 9:53 am Post subject:
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
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