I have spent a whole day trying to figure out if it is possible to create backups of my datasets in a JCL job.
What I need to do is:
read in a dataset such as:
and create a new dataset using the same allocation parameters like the one read in, using the same name but appending the qualifier new to the end, like this:
Then copy all members from old dataset to new dataset.
I seen that you can use the LIKE parameter to create a dataset with the same allocation parameters, is this what I need?
Any advice on this would be appreciated, my JCL skills are that of a beginner and I felt the documentation on IBM's site quite advanced for me.