| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
srajanbose
Joined: 11 Oct 2004
Posts: 21
Location: chennai
|
| Posted: Mon Sep 01, 2008 4:55 pm Post subject: Code to list the datasets names |
|
|
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 |
|
superk
Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA
|
| Posted: Mon Sep 01, 2008 4:59 pm Post subject: Reply to: Code to list the datasets names |
|
|
| See this previous topic and this previous topic and this previous topic and this previous topic and this previous topic. |
|
| Back to top |
|
Anuj D.
Joined: 22 Apr 2006
Posts: 2229
Location: Phoenix, AZ
|
| Posted: Mon Sep 01, 2008 5:40 pm Post subject: |
|
|
Or try this -
Code: //JS010 EXEC PGM=IDCAMS,REGION=2M
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT LVL(aa) ALL
//* |
|
| Back to top |
|
Anuj D.
Joined: 22 Apr 2006
Posts: 2229
Location: Phoenix, AZ
|
| Posted: Mon Sep 01, 2008 5:45 pm Post subject: |
|
|
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 |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|