Setting up the scan utility to run as a batch job
Set up scan as a batch job that can be run at regularly scheduled times as shown in the sample.
Run scan several times a day, for example; every four hours, on all the necessary systems to keep the RCDS current. If you have multiple log streams, for example; more than one system using DASD-only logging, or if you use both coupling facility logging and DASD-only logging, consider scheduling your batch scan jobs so that they run at different times to avoid contention, that is, system level enqueues.
//JOBSCN2 JOB MSGCLASS=X,CLASS=A,MSGLEVEL=(1,1),REGION=0M
//* CICSVR PROGRAM
//STEP1 EXEC PGM=DWWAR
//* LIBRARY CONTAINING CICSVR PROGRAMS
//STEPLIB DD DSN=DWW.SDWWLOAD,DISP=SHR
// DD DSN=DWW.SDWWLENU,DISP=SHR
//DWWMSG DD SYSOUT=*
//DWWPRINT DD SYSOUT=*
//* CICSVR RECOVERY CONTROL DATA SET NAMES
//DWWCON1 DD DSN=DWW.DWWCON1,DISP=SHR
//DWWCON2 DD DSN=DWW.DWWCON2,DISP=SHR
//DWWCON3 DD DSN=DWW.DWWCON3,DISP=SHR
//DWWIN DD *
LOGOFLOGS SCAN
The LOGOFLOGS command in this sample instructs CICS® VR to scan all the log of logs that are registered in the RCDS. All the information needed for recovery is stored in the RCDS. In addition, CICS® VR automatic deregistration is performed if it has been turned on through the CICS® VR panel interface. Use the CICS® VR panel interface to set or change the CICS® VR automatic deregistration settings.
Each time that scan is run, CICS® VR begins at the point in which the last scan ended. For more information on scan see the LOGOFLOGS command in LOGOFLOGS: Process a log of logs.