JCL for Mass Backup

Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems
ram23bal
Posts: 32
Joined: Sat May 24, 2008 3:57 pm
Skillset: COBOL
REXX
JCL
IMS DB
Referer: google

JCL for Mass Backup

Postby ram23bal » Wed Dec 08, 2010 6:30 pm

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

Code: Select all

//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?

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

Re: JCL for Mass Backup

Postby dick scherrer » Thu Dec 09, 2010 12:58 am

Hello,

Suggest you consider making the backup using the "real" file names and use rename if they are restored and need a new name.
Hope this helps,
d.sch.

expat
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm

Re: JCL for Mass Backup

Postby expat » Thu Dec 09, 2010 12:34 pm

COPY will work fine with DFdss (ADRDSSU) - all you need to do is to read the manual and get your control statement syntax correct.

Bad Man
Posts: 96
Joined: Sun Apr 04, 2010 2:20 pm
Skillset: Mainframe Storage
Referer: Google

Re: JCL for Mass Backup

Postby Bad Man » Mon Dec 20, 2010 3:36 pm

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 ...

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: JCL for Mass Backup

Postby Robert Sample » Mon Dec 20, 2010 5:23 pm

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.

expat
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm

Re: JCL for Mass Backup

Postby expat » Tue Dec 21, 2010 12:53 pm

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.