Chapter 2 - The OUTQTRG Commands

The OUTQTRG application contains commands that allow you to start and stop output queue monitor for specific output queues, start and stop the output queue monitoring service and work with spooled file monitoring paramters.

Configure Output Queue Trigger (CFGOUTQTRG)

                       Configure OutQ Trigger (CFGOUTQTRG)
 Type choices, press Enter.
 Output Queue . . . . . . . . . .                 Name
   Library  . . . . . . . . . . .     *LIBL       Name, *LIBL, *CURLIB
 Action . . . . . . . . . . . . .   *START        *START, *STOP
                                                                         Bottom
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display
 F24=More keys

The Configure Output Queue Trigger (CFGOUTQTRG) command allows you to start or stop output queue monitoring for specific output queues.

This command should be the first one run as it also sets up the data queue that is needed by the OUTQTRG application.

  • Output Queue - Enter the output queue and library of the output queue you want to monitor or stop monitoring.
  • Action - Enter *START to start monitoring for a specific output queue, or *STOP to stop monitoring for a specific output queue.

Start Output Queue Trigger Service Job (STROUTQTRG)

                         Start OutQ Trigger (STROUTQTRG)
 Type choices, press Enter.
 Job Queue  . . . . . . . . . . .   QSYSNOMAX     Name
   Library  . . . . . . . . . . .     *LIBL       Name, *LIBL, *CURLIB
                            Additional Parameters
 Debug  . . . . . . . . . . . . .   *NO           *YES, *NO
                                                                         Bottom
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display
 F24=More keys

Use the Start Output Queue Monitoring Service (STROUTQTRG) command to start the output queue monitoring service job.

  • Job Queue - Enter the job queue to submit the output queue monitoring service job to. This job queue should be one that allows multiple jobs to be run. For example, if you specify QBATCH and it is only set up to handle one job at a time, because this job runs continuously no other jobs will be able to be run.
  • Debug - Used to specify if the output queue monitoring job should produce debug output in the job log. If set to *YES, then messages that verify spooled files that are received as well as what command, if any, are run for the specific spooled file.

End Output Queue Monitoring Service Job (ENDOUTQTRG)

                          End OutQ Trigger (ENDOUTQTRG)
 Type choices, press Enter.
 Print job log  . . . . . . . . .   *NO           *YES, *NO
                                                                         Bottom
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display

Use the End Output Queue Monitoring Service Job (ENDOUTQTRG) command to end the output queue monitoring service job. Ending this job does not mean that output queues will continue to be monitored. Instead, this halts the processing of spooled files temporarily. If output queues are still being monitored through the CFGOUTQTRG command, then when this job is started again the queued spooled files will resume where they were left off.

  • Print job log - Use this command to print the job log of the output queue monitoring service job when it ends.

Work with Output Queue Triggers (WRKOUTQTRG)

Use the Work With Output Queue Triggers (WRKOUTQTRG) command to work with the rules set up to monitor spooled files. This command accepts no parameters.

The WRKOUTQTRG command display can be seen in Chapter 3.