Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Code to list the datasets names

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
srajanbose
Warnings : 1

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Mon Sep 01, 2008 4:55 pm    Post subject: Code to list the datasets names
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

Moderator Team Head


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

PostPosted: Mon Sep 01, 2008 4:59 pm    Post subject: Reply to: Code to list the datasets names
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

Senior Member


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

PostPosted: Mon Sep 01, 2008 5:40 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Sep 01, 2008 5:45 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts RFE: DB2 support for mixed case names. Pedro DB2 0 Tue Jul 04, 2017 1:32 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us