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
 
Get the list of data sets on DASD and their information

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

New User


Joined: 24 Sep 2010
Posts: 2
Location: Pune

PostPosted: Thu Mar 08, 2018 12:38 pm    Post subject: Get the list of data sets on DASD and their information
Reply with quote

Hello,

I need to migrate one of the mainframe applications at a shop to an emulated environment provided by Micro Focus which is going to run on Linux. As part of the migration, one of tasks is to migrate all kinds of data sets.

Is there any way (preferably a JCL) to get the list of all the data sets available on the DASD, their types and DCBs. This is required to create the catalogs in the target Linux environment.

Example:
If there are 2 sequential data sets on DASD. I need the names (both catalog & physical would be good) and DCB (Organization, Record format, Record length, Block size) etc.
For VSAM, it could be several additional information.

Thanks.
Rakesh
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8666
Location: Back in jolly old England

PostPosted: Thu Mar 08, 2018 12:45 pm    Post subject:
Reply with quote

A JCL, as you so non technically put it, does nothing other than communicate your wishes to the CPU, telling it which program and datasets you wish to play with on this occurrence.

There are many ways, ask your storage management people who will probably have access to DCOLLECT, ISMF (or whatever depending on the dataset lifecycle software in use at your shop)

You can use IEHLIST to invoke the LISTVTOC function

CSIUTIL is a REXX utility I have posted on here a few times.

So a few options for you to investigate, although given the information you have posted - I would go DCOLLECT or ISMF, although you could amend CSIUTIL to extract any further information icon_eek.gif

If you do have authority to process DCOLLECT, everything that you need to know should be in the IDCAMS manual ........ it was the last time I used it icon_eek.gif

Quote:
If there are 2 sequential data sets on DASD. I need the names (both catalog & physical would be good)

What do you mean by both catalog & physical would be good ? do you really need to know where a dataset is catalogued ?
Back to top
View user's profile Send private message
rakaitn

New User


Joined: 24 Sep 2010
Posts: 2
Location: Pune

PostPosted: Thu Mar 08, 2018 1:46 pm    Post subject:
Reply with quote

Thank you expat for your response.

I will try to explore the options you suggested.

And I mentioned to suggest a JCL because, I was hoping to get something which can be edited and run in batch mode.

Quote:
What do you mean by both catalog & physical would be good ? do you really need to know where a dataset is catalogued ?

No I don't really need to know the catalog name of data set. That is only for the documentations purpose.

Thanks.
Rakesh
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 200
Location: Denmark

PostPosted: Thu Mar 08, 2018 2:15 pm    Post subject:
Reply with quote

My personal favorite for VTOC listings is the VTOC program from WWW.CBTTAPE.ORG file 112. It is a TSO command and can run in TSO batch.
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 Extracting DDL for all list of intere... Ashishpanpaliya DB2 5 Mon May 21, 2018 4:08 pm
No new posts Ways to share data between Cobol and ... Benchwarmer Java & MQSeries 3 Thu May 10, 2018 9:16 pm
No new posts 3270 Data stream error Benchwarmer CICS 6 Tue Apr 17, 2018 12:06 am
No new posts Handling result sets in the calling N... Rusikesh DB2 7 Fri Apr 13, 2018 12:25 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 10 Thu Apr 12, 2018 11:33 pm

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