-SYNC (Sync point)
The -SYNC command creates a sync table entry and executes a Db2 COMMIT WORK statement.
The text of the command includes a comment that is recorded in the sync table. The Analysis component creates these commands at required intervals in a worklist. Analysis also uses the SYNCPOINT keyword in the ALUIN input stream to create additional -SYNC commands in a worklist based on the number of -SQL commands since the last -SYNC command.
INDEX (ALL)
-SYNC 000640 CHECKPOINT AFTER RUNSTATS
********************************************************
-AUTH 000690 JEO
-REBD 000700 REBIND PLAN ALUAPL1
VALIDATE(BIND) ISOLATION(CS)
ACQUIRE(USE) RELEASE(COMMIT) EXPLAIN(NO)
-AUTH 000710
-SYNC 000720 END OF REBIND PLANS SECTION
********************************************************
-COPY 000730
COPY TABLESPACE RESTATE.PROPERTY
DEVT TAPE COPYDDN SYSC1001
-SYNC 000740 CHECKPOINT AFTER IMAGE COPY
********************************************************
A -STOP command records a RESTART point and halts processing, while a -SYNC command records a RESTART point and continues processing. Because they mark RESTART points, -SYNC commands should not be removed.
You can insert additional parameters as allowed by Db2 in this command. Execution passes these parameters unchanged to the Db2 utility.
The CM/PILOT component of BMC AMI Change Manager for Db2 also uses the -SYNC command in a CM/PILOT worklist. The sync table entries are created during CM/PILOT worklist processing. You can view the sync table entries for task IDs.
A -SYNC command includes one of the following values in a CM/PILOT worklist:
- END OF ANALYSIS SECTION
- END OF BASELINE REPORT SECTION
- END OF BASELINE SECTION
- END OF BATCH JCL SECTION
- END OF COMPARE SECTION
- END OF DELETE WORKID SECTION
- END OF IMPORT SECTION
- END OF REPLICATE WORKID SECTION
Related topic