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: 8714
Location: Welsh Wales

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: 219
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
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 463
Location: London

PostPosted: Sat Jun 09, 2018 10:42 pm    Post subject:
Reply with quote

I don't understand what you're really trying to achieve here. You say you have to 'migrate mainframe applications' to an emulated environment. I assume the 'mainframe' is an IBM Mainframe running Z/OS? And what is the 'emulated' platform going to be that runs under Linux, will that also be Z/OS? This is fairly fundamental information you need to provide. Also, when you say you're going to 'migrate' the application does that mean you want to take all the datasets with their data contents across to the new platform?

If you want to take all the datasets and contents then the simplest way is to backup all the datasets on the source system with something like DFDSS (ADRDSSU) or FDRDSF, send the backups to the new environment through FTP and then simply restore the datasets from the backups. The restore will create the datasets with all the original attributes and data content, and catalog them into the usercatalogs you have defined on the new environment.

There are other considerations such as the SMS configuration that need to be defined before any of the above can happen.
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 Extra data in overlay field speermb DFSORT/ICETOOL 2 Thu Sep 13, 2018 6:04 pm
No new posts How to summarize data by grouping on ... santhosh5983 DFSORT/ICETOOL 6 Tue Sep 04, 2018 9:07 am
No new posts CLOB Column data to External File usi... lalitmehta12 DB2 9 Tue Aug 21, 2018 7:22 pm
No new posts JCL to send email along with formated... wik123 JCL & VSAM 5 Thu Aug 09, 2018 9:48 am
No new posts Send data from a CICS TS program to M... spiThingy CICS 2 Wed Aug 08, 2018 8:58 am

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