Page 1 of 1

JCL for Mass Backup

PostPosted: Wed Dec 08, 2010 6:30 pm
by ram23bal
Hi all
My requirement is to take a backup of all contents under my qualifier

say --> XXXXXXXX.COB.**
Like --> TEMP.XXXXXXXX.COB.**

Tried to do it with ADRDSSU

//STEP1   EXEC PGM=ADRDSSU                     
//SYSPRINT DD  SYSOUT=*                       
//SYSIN    DD  *                               
 COPY DATASET(INCLUDE(XXXXXXXX.COB.**)) -
      RENAMEU(TEMP)                           
/*             



While doing that first qualifier alone gets renamed. I need to change first qualifiers with "TEMP.XXXXXXXX".
Any one can help me in achieving this? Do we have any other utility to do this?

Re: JCL for Mass Backup

PostPosted: Thu Dec 09, 2010 12:58 am
by dick scherrer
Hello,

Suggest you consider making the backup using the "real" file names and use rename if they are restored and need a new name.

Re: JCL for Mass Backup

PostPosted: Thu Dec 09, 2010 12:34 pm
by expat
COPY will work fine with DFdss (ADRDSSU) - all you need to do is to read the manual and get your control statement syntax correct.

Re: JCL for Mass Backup

PostPosted: Mon Dec 20, 2010 3:36 pm
by Bad Man
COPY function cannot be used for backup

From the manual

The DFSMSdss COPY command performs data set movement, volume movement, and track movement from one DASD volume to another.

DUMP command is used for the same please read the manual ...

Re: JCL for Mass Backup

PostPosted: Mon Dec 20, 2010 5:23 pm
by Robert Sample
Your DF/DSS job is not making a copy, nor a backup -- if that is what you think you are doing with your JCL, then you seriously need to spend HOURS (if not DAYS) reading the DF/DSS manual on ADRDSSU.

Re: JCL for Mass Backup

PostPosted: Tue Dec 21, 2010 12:53 pm
by expat
Bad Man wrote:COPY function cannot be used for backup
From the manual
The DFSMSdss COPY command performs data set movement, volume movement, and track movement from one DASD volume to another.
DUMP command is used for the same please read the manual ...

Any particular reason that the COPY function CAN NOT be used to create a backup of a dataset. I have used it enough times to do so.

The trick is understanding exactly how the backups are going to be used and then using the appropriate function of Dfdss

So please do not post unless you are 100% certain that you know what you are talking about, it only serves to confuse the pre confused.