Page 1 of 1

JCL to create backups of PDS's

PostPosted: Thu Oct 23, 2014 4:32 pm
by deucalion0
Hello all!

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:

my.dataset.one

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:

my.dataset.one.new

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.

Thank you!

Re: JCL to create backups of PDS's

PostPosted: Thu Oct 23, 2014 4:54 pm
by enrico-sorichetti
why not ask Your support for the procedure to use ...
read about the capabilities of DFDSS(ADRDSSU)