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
 

 

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: 10232
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


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