Quick (and dirty) DASD dump script
Just to start things off, here’s a really rough script I threw together to dump the contents of a folder full of CCKDs into a linux folder hierarchy.
https://github.com/littlejackal/jenterprise/blob/master/dasd_dump.sh
I found it rather handy to be able to grep through datasets on my local machine rather than going through 3.4.
The script runs through a folder of CCKDs then extracts each one into a folder (of the same name) in a target directory. For each PDS in the CCKD it will create a subfolder with the PDS name, then fill it with the PDS members. For any sequential DS it encounters it will just extract that to the root of the CCKD directory. I’m fairly confident that if it extracts a sequential DS it won’t find a PDS of the same name so I had it attempt to extract the sequential first, and only then if it doesn’t find an extracted file will it attempt a PDS extraction.
You’re going to want to have all the Hercules dasd* files in your path for this to work, otherwise you will want to throw some absolute binary paths in the script.
It’s not a complex script so you’ll probably have no trouble figuring out what it does. If you have any questions feel free to ask.
Note: If you’re extracting the contents of the 1.10 ADCD, you’ll probably find the script chugging on IMS1010.MSDB* -- They’re just huge files and don’t seem to contain much of anything useful so feel free to just kill the underlying dasdseq process in another terminal if you’re like me and have zero patience.









