Multiple backup using ADRDSSU tape in OS/390
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Job Control Language(JCL)

#1: Multiple backup using ADRDSSU tape in OS/390 Author: juan00982Location: PR PostPosted: Mon Sep 26, 2005 9:12 am
    —
Hi,

Currently If I run a backup using ADRDSSU to tape, at end, the tape rewinds. I don't want this to happend, I want to be able to run multiple backup on the same tape without overwritting previous backup.

Is there a way to do this ?

Thanks in adavce for all the information you can provide.

#2:  Author: kolusuLocation: San Jose PostPosted: Mon Sep 26, 2005 9:21 am
    —
juan00982,


Try this

Quote:

//STEP0100 EXEC PGM=ADRDSSU
//SYSPRINT DD SYSOUT=*
//BACKUP1 DD DSN=YOUR BACKUP TAPE NAME1,
// DISP=(,CATLG,DELETE),UNIT=TAPE,
// LABEL=(01,SL),VOL=(,RETAIN)
/*
//STEP0200 EXEC PGM=ADRDSSU
//SYSPRINT DD SYSOUT=*
//BACKUP2 DD DSN=YOUR BACKUP TAPE NAME2,
// DISP=(,CATLG,DELETE),UNIT=TAPE,
// LABEL=(02,SL),VOL=(,,REF=*.STEP0100.BACKUP1)

#3:  Author: juan00982Location: PR PostPosted: Mon Sep 26, 2005 10:42 am
    —
What about if I run a backup on saturday and then on monday I want to run another backup on the same tape, will this also work ?

Quote:

//STEP0100 EXEC PGM=ADRDSSU
//SYSPRINT DD SYSOUT=*
//BACKUP1 DD DSN=YOUR BACKUP TAPE NAME1,
// DISP=(,CATLG,DELETE),UNIT=TAPE,
// LABEL=(01,SL),VOL=(,RETAIN)
/*
//STEP0200 EXEC PGM=ADRDSSU
//SYSPRINT DD SYSOUT=*
//BACKUP2 DD DSN=YOUR BACKUP TAPE NAME2,
// DISP=(,CATLG,DELETE),UNIT=TAPE,
// LABEL=(02,SL),VOL=(,,REF=*.STEP0100.BACKUP1)

#4:  Author: PhantomLocation: The Blue Planet PostPosted: Tue Sep 27, 2005 12:36 am
    —
jvan00982,

Quote:

I want to be able to run multiple backup on the same tape without overwritting previous backup.


How will it overwrite when the LABELs are different ? Did you face any such problem even with the Label parameter ?

Thanks,
Phantom

#5:  Author: Deepika PostPosted: Sun Jan 07, 2007 9:50 pm
    —
Hi,
I am having multiple DASD files which need to be backed up to tapes.Also I want to utilize the tape volumes efficiently.So, I am using label parameters in copying the DASD file to tape volumes.But I am not able to retrieve the backed up tapes without Volume Reference Parameters.

The JCL for copying would be in the format,
Code:

//STEP1 EXEC PGM=IEBGENER                                 
//SYSPRINT DD SYSOUT=*                                     
//SYSUT1   DD DSN=DASD.FILE1,                     
//            DISP=SHR                                     
//SYSUT2   DD DSN=TAPE.FILE1,               
//            DISP=(NEW,CATLG),                             
//            UNIT=TAP5                                     
//SYSIN    DD DUMMY                                         
//STEP2 EXEC PGM=IEBGENER                                 
//SYSPRINT DD SYSOUT=*                                     
//SYSUT1   DD DSN=DASD.FILE2,                 
//            DISP=SHR                                     
//SYSUT2   DD DSN=TAPE.FILE2,           
//            DISP=NEW,LABEL=(2,SL),                       
//            VOLUME=REF=TAPE.FILE1,UNIT=TAP5
//SYSIN    DD DUMMY                                         


Basically in the first step, I am creating a tape file and in the second step, I am trying to create other tape with volume reference as of first tape.This is working.
My Retrieval JCL is in the format,
Code:

//STEP3 EXEC PGM=SORT                                     
//SYSPRINT DD SYSOUT=*                                     
//SORTIN   DD DSN=TAPE.FILE2,           
//            DISP=OLD,LABEL=(2,SL),                       
//            VOLUME=REF=TAPE.FILE1         
//SORTOUT  DD DSN=DASD.FILE3,       
//            DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(1,1),RLSE)
//SYSIN    DD *                                             
    SORT FIELDS=COPY                                       
/*


Here in the above quote,I am specifying the Volume reference since it gave me error when I specified without volume reference.
Please let me know the procedure to retrieve the tapes stored with labels without specifying its volume reference parameters.

#6:  Author: kolusuLocation: San Jose PostPosted: Mon Jan 08, 2007 4:41 pm
    —
Deepika,
Quote:

Here in the above quote,I am specifying the Volume reference since it gave me error when I specified without volume reference.



Post the error message along with message id

Kolusu

#7:  Author: Deepika PostPosted: Mon Jan 08, 2007 11:43 pm
    —
I got the error message like Dataset not found.
Then I found that the corresponding file has not been catalogued.
When I catalogued it, I am able to retrieve the same without any Volume reference parameters.

Thanks Kolusu.



MVSFORUMS.com -> Job Control Language(JCL)


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group