Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Start OUTQ Print Monitor (STRPRTMON) command schedules the print monitor program. Monitoring can be performed system-wide LEVEL(*SYS) where individually by job and/or user profile.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
LEVEL | Monitor Level | *SYS, *JOB | Optional, Positional 1 |
OPTION | Monitor option | *CPYSPLF, *SAVSPLF, *COPY, *SAVE, *ACTIVATE, *INTER | Optional, Positional 2 |
STATUS | Print monitor status | *ACTIVE, *HOLD | Optional, Positional 3 |
OUTPUT | Target OUTQ or SAVSPLF archive | Single values: *COZTOOLS Other values: Qualified object name |
Optional, Positional 4 |
Qualifier 1: Target OUTQ or SAVSPLF archive | Name | ||
Qualifier 2: Library | Name, *LIBL | ||
DTAQ | Data Queue for Monitor | Qualified object name | Optional, Positional 5 |
Qualifier 1: Data Queue for Monitor | Name, COZPRTMON | ||
Qualifier 2: Library | Name, QGPL | ||
EXITPGM | Exit program to call | Qualified object name | Optional, Positional 6 |
Qualifier 1: Exit program to call | Name, COZPRTMON | ||
Qualifier 2: Library | Name, *LIBL | ||
JOBQ | Job queue for monitor | Qualified object name | Optional, Positional 7 |
Qualifier 1: Job queue for monitor | Name, QUSRNOMAX, QCTL, QINTER, QBATCH | ||
Qualifier 2: Library | Name, *LIBL | ||
STRMON | Start Monitoring | Element list | Optional, Positional 8 |
Element 1: Start Date | Date, *CURRENT, *EOM | ||
Element 2: Start Time | Time, *CURRENT, *MIDNIGHT | ||
ENDMON | End Monitor | Single values: *NONE Other values: Element list |
Optional, Positional 9 |
Element 1: End Date | Date, *STRMON | ||
Element 2: End Time | Time, *MIDNIGHT | ||
RESCD | Reshedule Start Date... | Single values: *NONE Other values: Element list |
Optional, Positional 10 |
Element 1: When scheduled day is | *WEEKEND, *WEEKDAY, *SATSUN, *SUN, *MON, *TUE, *WED, *THU, *FRI, *SAT, *TUES, *THUR, *THURS | ||
Element 2: Then use | *PREV, *NEXT, *PRV | ||
Element 3: Day of week to reschedule | *DAY, *WEEKDAY, *WEEKEND, *SUN, *MON, *TUE, *WED, *THU, *FRI, *SAT, *TUES, *THUR, *THURS | ||
LOG | Write CL commands to joblog | *YES, *NO | Optional, Positional 11 |
SAVE | Change SPLF SAVE(*YES|*NO) | *YES, *NO, *SAME | Optional, Positional 12 |
HOLD | Change SPLF HOLD(*YES|*NO) | *YES, *NO, *SAME | Optional, Positional 13 |
OWNER | Change SPLF OWNER to | Name, *SAME | Optional, Positional 14 |
USER | Monitor these users | Values (up to 12 repetitions): Name, *ALL | Optional, Positional 15 |
OMITUSER | Omit these users | Values (up to 12 repetitions): Generic name, name, *ALLIBM | Optional, Positional 16 |
USRDTAARA | Data area for additional users | Single values: *NONE Other values: Qualified object name |
Optional, Positional 17 |
Qualifier 1: Data area for additional users | Name, *DFT, QPRTMONUSR | ||
Qualifier 2: Library name or *LIBL | Name, *LIBL, *CURLIB |
Top |
Specifies whether Print Monitoring is automatically set up for every new job entering the system after the STRPRTMON command is run.
Top |
Specify the type of OPTION to be performed by the print monitor.
Top |
Top |
Specify the name of the OUTQ or SPOOL FILE ARCHIVE database file that is the target of the print monitor. If the object specified for this parameter does not exist, it is created. The OUTPUT value is treated as an OUTQ when OPTION(*COPY or *CPYSPLF) is specified, and as the SPOOL File Archive database file when OPTION(*SAVE or *SAVSPLF) is specified.
Output
If OPTION(*COPY) is specified, then SPOOL files are copied to the Output Queue named USRPRTMON on the library list. If the USRPRTMON does not exist on the library list, it is created in the QUSRSYS library.
If OPTION(*SAVE) is specified, then SPOOL files are saved to the SPOOL File archive database file named USRSAVSPLF on the library list. If the USRSAVSPLF does not exist, it is created in the QGPL library.
Top |
Specify the name of the data queue (*DTAQ) that receives the entries when a SPOOL file is created. This DTAQ is monitored by the Print Monitor.
Data Queue Name
Top |
Specify the name of the Print Monitor program. This program can be any user-written program. A call to this program is submitted to QUSRNOMAX job queue. The COZTOOLS includes the Print Monitor Program named COZPRTMON in COZTOOLS.
Exit program to call
Top |
Specify the name of the jobq onto which the call to the EXITPGM is placed.
Job queue for monitor
Top |
Specify the starting date and time for monitoring to begin. SPOOL FILES created prior to the start time are NOT included in monitoring.
Start Date
Start Time
Top |
Specify the termination date and time of the Print Monitor.
Single values
End Date
End Time
Top |
When the schedule date of the STRMON falls on the day specified for this parameter, the STRMON date is rescheduled to the new day, also indicated on this parameter. For example, if *MONTHEND is specified and that date is a Saturday or Sunday, you may wish to run the print monitor on the prior Friday date, or perhaps the following Monday date. This parameter allows you to control the rescheduling.
Single values
Scheduled Day
Relative Operator
Day of week to reschedule
Top |
Specifies whether the internal CL commands run by the print monitor are written to the joblog as informational messages.
Top |
When OPTION(*COPY) is specified, the copy's SPOOL File SAVE attribute is modified.
Top |
When OPTION(*COPY) is specified, the copy's SPOOL File HOLD attribute is modified.
Top |
When OPTION(*COPY) is specified, the copy's SPOOL File OWNER is set to the User Profile specified on this parameter.
Top |
Specifies the user profiles whose SPOOL Files are monitored.
You can specify up to 12 user profiles for this parameter.
Top |
Specifies a list of users that are not monitored. Use this parameter when USER(*ALL) is specified and all users except certain ones should be monitored. This parameter supports generic names.
You can specify 12 user profile names for this parameter.
Top |
Top |
Example 1: Start Print Monitoring
STRPRTMON LEVEL(*SYS) OPTION(*COPY) OUTPUT(QUSRSYS/ARCHIVE)
This STRPRTMON example starts the print monitor for all new jobs entering the system. It copies each new SPOOL file to the output queue named ARCHIVE in QUSRSYS. To change an active job so that it too is being monitored, run the CHGPRTMON command within the active job.
Example 2: Start Print Monitor in Selective Jobs
STRPRTMON LEVEL(*JOB) OPTION(*SAVE) OUTPUT(QGPL/USRSAVSPLF)
This command starts the Print Monitor for any job that has print monitoring enabled. New jobs entering the system are NOT automatically monitored. The new SPOOL files are save to a SPOOL File Archive named USRSAVSPLF in QGPL. For more information on SPOOL File Archives, see the SAVSPLF and RSTSPLF commands. To activate monitoring for an active job, run the CHGPRTMON OPTION(*START) command, and to end print monitoring for any giving job, run CHGPRTMON OPTION(*END)
Top |
Top |