View previous topic :: View next topic
|
Author |
Message |
Bhanupratap Natva
New User
Joined: 13 Jul 2007 Posts: 8 Location: Hyderabad
|
|
|
|
Is there any way to download the dataset names which start with a particular HLQ? |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Probably you can write small rexx program to get the names with required criteria and write all in one PS.
Transfer this PS to your local machine using conventional way you are using at your shop and load it into EXCEL. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
no need to write anything,
if the list was obtained thru ISPF 3.4 option, all is needed is to save the dataset list
( see ISPF manuals or the online help ) |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
There are two steps involved.
First, as Enrico said and I believe that's the best option per the information in hand or just as an other alternative you may use
Code: |
LISTCAT LVL(HLQ) ALL |
with IDCAMS.
Second, get that list "downloaded" to PC (in notepad) and "open with" excel. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
The LISTCAT ALL will generate a lot of extra lines. If you use
Code: |
LISTCAT LVL(hlq) NAME |
you will get fewer extra lines. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I agree with Bill -- but such ambiguous requests deserve such answers. There is other, probably a neat solution (though depends what one wants) is:
Code: |
//STEP01 EXEC PGM=IKJEFT1A
//SYSPROC DD DSN=SYS1.SAMPLIB,DISP=SHR
//SYSTSPRT DD DSN=XXXXXX.LIST.HLQ,
// DISP=(NEW,CATLG,CATLG),
// UNIT=??,SPACE=??,
// DCB=(RECFM=FB,LRECL=133,BLKSIZE=0)
//SYSTSIN DD *
%IGGCSIRX
HLQ.**
/* |
|
|
Back to top |
|
|
|