Backup

Backup

JCL Examples

Various examples showing JCL for running the BACKup utility are presented. Select an appropriate example matching the control statement conventions that you have used for specifying data sets.

JCL for Running Backup

The first example shows JCL for backup with the primary, secondary, and standby control data sets, copy data sets (SLSCOPY1 and SLSCOPY2), and journals. The JCL to perform a backup contains the following statements:

Run Backup Utility

/JOB

jobname SLUADMIN

 

 

/PARM

MIXED

 

 

 

/FILE

SLSCNTL

DEV vaddr

DSN

primary.set.name

/FILE

SLSCNTL2

DEV vaddr

DSN

secondary.set.name

/FILE

SLSSTBY

DEV vaddr

DSN

standby.set.name

/FILE

SLSBKUP

DEV vaddr

DSN

backup.set.name

/FILE

SLSJRN#1

DEV vaddr

DSN

journal1.set.name

/FILE

SLSJRN#2

DEV vaddr

DSN

journal2.set.name

/FILE

SLSCOPY1

DEV vaddr

DSN

copy1.set.name

/FILE

SLSCOPY2

DEV vaddr

DSN

copy2.set.name

/FILE

SLSPRINT

DEV PRNT CLASS

A

/FILE

SLSIN

*

 

 

BACKUP OPTION(ANALYZE) CDS(PRIMARY)

JCL for Running a Copy Backup

The following examples show JCL for running a straight copy backup of the control data set.

This example specifies BACKup utilizing OPTion(Copy) with shadowing (a secondary CDS) and journaling enabled. The SLSCNTL statement identifies the primary control data set. Backup is processed with journals. If the /FILE SLSCNTL2 statement is not provided, a return code of four (RC=4) is generated, and a backup of the primary is taken.

JCL for Backup of Primary or Secondary CDS with Journals

/JOB

jobname

SLUADMIN

 

 

/PARM

MIXED

 

 

 

/FILE

SLSBKUP

DEV vaddr

DSN

backup.set.name

/FILE

SLSCNTL

DEV vaddr

DSN

primary.set.name

/FILE

SLSCNTL2

DEV vaddr

DSN

secondary.set.name

/FILE

SLSJRN#1

DEV vaddr

DSN

journal1.set.name

/FILE

SLSJRN#2

DEV vaddr

DSN

journal2.set.name

/FILE

SLSPRINT

DEV PRNT CLASS

A

/FILE

SLSIN

*

 

 

BACKUP OPTION(COPY)

Chapter 4. Utility Functions 219

1st ed., 6/30/04 - 312579601

Page 249
Image 249
StorageTek 6 manual Backup JCL Examples, JCL for Running Backup, Run Backup Utility, JCL for Running a Copy Backup