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

Code to list the datasets names


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srajanbose

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Mon Sep 01, 2008 4:55 pm
Reply with quote

My requirement is like for example

aa.bbbb.cccc
aa.bbbb.dd are the dataset names. I want to list the dataset names if I know only the first qualifier. That is if I give aa.* it should display all the datasets with first qualifier as aa.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Mon Sep 01, 2008 4:59 pm
Reply with quote

See this previous topic and this previous topic and this previous topic and this previous topic and this previous topic.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Sep 01, 2008 5:40 pm
Reply with quote

Or try this -
Code:
//JS010 EXEC PGM=IDCAMS,REGION=2M 
//SYSPRINT DD SYSOUT=*             
//SYSIN DD *                       
  LISTCAT LVL(aa) ALL         
//*                               
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Sep 01, 2008 5:45 pm
Reply with quote

or this -
Code:
//STEP10  EXEC PGM=IKJEFT1A                       
//SYSPROC   DD DSN=SYS1.SAMPLIB,DISP=SHR           
//SYSTSPRT  DD DSN=HLQ.LIST.ALL,                   
//             DISP=(NEW,CATLG,CATLG),             
//             UNIT=DISK,SPACE=(CYL,(50,50),RLSE),
//             DCB=(RECFM=FB,LRECL=133,BLKSIZE=0) 
//SYSTSIN   DD *                                   
%IGGCSIRX                                         
HLQ.**                                             
/*                                                 
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top