HP NonStop G-Series User Manual

Page 85

Advertising
background image

Triggers

HP AutoSYNC User’s Guide522580-020

6-5

TRIGGER examples

4. Compare the old destination file with the new destination file: discrepancies will be

reported to the log file:

5. Conditionally SQL compile objects depending on the file code of the object file.

Only objects that can run on the destination are SQLCOMP’ed. The SYNC trigger
invokes a TACL macro TRIGCOND as follows:

SYNC /home/dev/sales/appl TO /E/paris/home/sales/appl/, LISTALL, LOGFILE
triglog, CLEAR, TRIGGER "/home/sales/scripts/cpsyrcv #SYNCFILE
#RECOVERFILE ";

cpsyrcv:
cp $1 /home/sales/bckupnew/;
cp $2 /home/sales/bckupold/;

SYNC $data.test.sqobj TO \paris.$datab.testb.sqobj,
TRIGGER "RUN TRIGCOND #SYNCFILE";

Advertising
This manual is related to the following products: