Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 5 Backing Up Your System : Using the Continuous Backup Approach

Using the Continuous Backup Approach
Rather than take full or partial system backups at regular intervals, you can decide to follow the continuous backup approach and use your journals to update your latest backup. There are three tasks to the continuous backup procedure:
The following sections explain these steps and suggest some implementation alternatives. The choices you make affect the procedures you follow regularly and the length of down time you experience if you ever must restore backed-up data.
 
Task A Merging Journal Accumulations
Depending upon the size of your journal data sets and the number of transactions you process, your journals can be spun many times during the day. When a journal spins, its contents are condensed and offloaded into a journal accumulation file.
Changing the Default Threshold
The systems administration and operations staff at your site decide how many journal accumulation files to keep on DASD before merging them together into one. The default threshold is 2. To change this default, edit the value of the $SPINLIM$ parameter in your spin procedure. The spin limit must not be greater than the limit specified in the installation parameter $JSRGDG$. For more information about $JSRGDG$, refer to TIBCO Object Service Broker for z/OS Installing and Operating.
Sample JCL
The following example illustrates how you can use the standard SORT JCL to merge journal accumulations after every two journal spins. The JCL for this example is derived from member SPINMRG in the JCL data set.
The ARCHLOG is written out and retained to provide you with an audit trail of the accumulation process.

 
//$JOBNME$ JOB ($ACTCDE$),’MERGE OSB JOURNALS’,
// MSGCLASS=$MSGCLS$,CLASS=$PRCCLS$,TIME=60,
// NOTIFY=$NOTIFY$,MSGLEVEL=(1,1),REGION=5M
//*
//* FUNCTION: MERGE JOURNAL SPINOUT GDG’S INTO A SINGLE GDG
//*
//* CUSTOMIZATION: OSEMOD ISPF EDIT MACRO
//*
//* NOTES: JOURNAL SORTOUT DATA SET DEFAULTS SHOULD SUFFICE FOR A
//* DEFAULT OF 10 GDG’S BEFORE MERGING.
//*
//* MERGE SPUN JOURNALS INTO A SINGLE GDG
//*
//MERGE EXEC PGM=SORT
//SORTIN DD DSN=$HLQNONV$.$SLQ$.JOURNAL.SPINOUT,
// DISP=(OLD,DELETE,KEEP)
//SORTOUT DD DSN=$HLQNONV$.$SLQ$.JOURNAL.SPINMRG(+1),
// DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(100,20),RLSE),
// UNIT=$INSTUNT$,
// DCB=($HLQNONV$.$INSTVER$.MODEL.DSCB,
// RECFM=VB,LRECL=4800,BLKSIZE=0)
//SORTWK01 DD UNIT=$INSTUNT$,SPACE=(CYL,(15,15))
//SORTWK02 DD UNIT=$INSTUNT$,SPACE=(CYL,(15,15))
//EXITLIB DD DSN=$HLQNONV$.$INSTVER$.LOAD,
// DISP=SHR
//TEMPLOG DD UNIT=$INSTUNT$,SPACE=(TRK,(1,1))
//ARCHLOG DD DSN=$HLQNONV$.$SLQ$.ARCHLOG.JRNL,
// DISP=SHR
//SYSIN DD DSN=$HLQNONV$.$INSTVER$.JCL(XSPINSRT),
// DISP=SHR
//SYSOUT DD SYSOUT=$SYSPRT$
//*
//* SUBMIT CONTINUOUS BACKUP JOB
//*
//SPAWN EXEC PGM=IEBGENER,
// COND=(0,NE,MERGE)
//SYSPRINT DD SYSOUT=$SYSPRT$
//SYSUT1 DD DSN=$HLQNONV$.$INSTVER$.JCL(BKUPCON),
// DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD DUMMY
//

 
Sort Control Cards
This JCL uses standard sorting facilities and exit routines. The sorting procedure for merging journal accumulations reads in all existing journal accumulations (for example, as generation data sets within a GDG), eliminates old duplicate pages and outputs a master accumulation file to disk. If DASD is initially used for the GDG, the GDG base must be deleted and redefined if you switch to tape.
The following illustrates a typical sort control statement:

 
SORT FIELDS=(5,6,BI,A,21,6,BI,D,30,3,BI,D,27,3,BI,D),EQUALS
MODS E15=(S6BSPX15,100000,EXITLIB,N),E35=(S6BSPX35,110000,EXITLIB,N)
<optional filtering INCLUDE statement>
RECORD TYPE=V

 
The following outline this sort control statement sorts the journal page images in a controlled order:
1.
2.
3.
4.
5.
6.
7.
The MODS statement causes the sort to invoke special TIBCO Object Service Broker exits that select the most current page images for recovery.
To modify your sort control statement, you must know the format of the header information and use that to determine your SORT offsets. For more information, refer to Appendix A, Sort Control Manipulation.
Point in Time Recovery Options
While the sample JCL uses sort exit S6BSPX35, an alternative exit, S6BSPU35, is available if you want to be able to recover segment pages using journal images to a specific point in time.
The point-in-time recovery option, enabled by the use of S6BSPU35, uses much more journal file space than recovery to the latest quiesce point that S6BSPX35 gives you. To allow point-in-time recovery, S6BSPU35 saves all journaled page images, unlike S6BSPX35, which saves only the latest version of each. For more information on point-in-time recovery, refer to Chapter 8, Recovery Procedures.
If you opt for point-in-time recovery, consider using tape rather than DASD to economize on journal file space.
Task B Merging Journal Accumulations with Complete Backups
Using the continuous approach, you can merge your master accumulation file with your latest complete backup as frequently as your recovery needs require. In most cases, we recommend a daily refresh of your complete backup.
To refresh your latest backup, use the sort program to read in your journal accumulation file (or files) and your latest complete backup. The sort exit routines write information about the input and output records in an ARCHLOG and eliminate the older versions of duplicate pages. The output from this sort is a new system backup that includes all page updates recorded in the journal accumulation files.
Continuous backup and recovery works on fully completed (committed) transactions. Remember that transactions in the contingency log are not complete and are not part of the continuous backup and recovery process.
Task C Validating Your Backup
After you create your new backup, you must run the S6BBRPTR (Batch Pointer Check) utility against it to verify the accessibility of all pages in the backup. The S6BBRPTR utility is described in TIBCO Object Service Broker for z/OS Utilities.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved