Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Is there any way to download the dataset names

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

New User


Joined: 13 Jul 2007
Posts: 8
Location: Hyderabad

PostPosted: Mon Aug 24, 2009 6:17 pm    Post subject: Is there any way to download the dataset names
Reply with quote

Is there any way to download the dataset names which start with a particular HLQ?
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Aug 24, 2009 6:20 pm    Post subject:
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Mon Aug 24, 2009 6:22 pm    Post subject: Reply to: Is there any way to download the dataset names int
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Mon Aug 24, 2009 7:25 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Aug 25, 2009 2:19 am    Post subject:
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Tue Aug 25, 2009 2:46 pm    Post subject:
Reply with quote

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
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us