I want to start with saying I'm a newbie on zfs and Zlinux system services .
I had to unload/drop/reload a big DB2 table with Lobs.
it's to big to use a PDSE so they told me to use ZFS .
I (with some help) managed to get it done, but with a lot of manual intervention.
But now I want to put all of this in a JCL.
Or maybe I'm doing it in a completely inefficient way and could you guide me.
So this is what I think needs to be done:
1) - idcams delete/define of a Linear dataset
2) - Format it for ZFS
3) - A mount
4) - a MKDIR
5) DB2 stuff
7) idcams delete
4)-5)-6) might be repeated for another table (And reuse the same space)
These are the problems and questions :
i) is rmdir the fastest way to remove a lot of data (but keep and reuse the space)
ii) Do I need to do rmdir if I'm planning to unmount & delete
iii) How to do an rmdir in JCL ? I did an MKDIR with IKJEFT1B, but apparently RMDIR is not a TSO command.
iv) just throw a kind eye on the JCL to see if anything can be done better/different.