6.0

84
Creating Triggers
2
*** &outputqslb: Library of the print queue (source).
*** &outputqd: Final print queue (destination after the spool file has been modified).
*** &outputqdlb: Library of the final print queue (destination after the spool file has been modified).
*** &triggerfn: Physical file, which contains the string used for the trigger.
*** &triggerlib: Library or file where the trigger is located.
To schedule the program under AS/400:
Enter the following command:
ADDJOBSCDE JOB(WATCH) CMD(CALL PGM(OBJLUNE/WATCH) PARM('&watchprtfn &watchprfl
&outputqs &outputqslb &outputqd &outputqdlb &triggerfn &triggerlib')
FRQ(*WEEKLY) SCDDATE (*NONE) SCDDAY(*ALL) SCDTIME('23:00')JOBD(JOBDLIB/JOBD)
USER(USRPRF)
Replace the following by the appropriate values for your system:
*** &watchprtfn: Name of the printer file used to create the final spool file.
*** &watchprtfl: Name of the library of the printer file used to create the final spool file.
*** &outputqs: Name of the print queue (source).
*** &outputqslb: Name of the library of the print queue (source).
*** &outputqd: Name of the final print queue (destination after the spool file has been modified).
*** &outputqdlb: Name of the library of the final print queue (destination after the spool file has
been modified).
*** &triggerfn: Name of the physical file that contains the string used for the trigger.
*** &triggerlib: Name of the library or the file where the trigger is located.
*** &JOBDLIB: Name of the library that contains the job description used for this command.
*** &USRPRF: Name of the user profile used to run this command.
Important! The user profile must have rights to access both print queues, and to write in the OBJLUNE
library (temporary file).