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.
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.
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.