Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Start Monitor for OnDemand (STRMONRDAR) command allows you to specify the name of an output queue to monitor. When a spooled file is added to the output queue, the spooled file is automatically processed by STRCDSRDAR. You can end the monitor by:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OUTQ | Output queue | Qualified object name | Required, Positional 1 |
Qualifier 1: Output queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
RPTNAMSRC | Value to use as report name | Element list | Optional |
Element 1: Check first | *SPLFNAME, *FORMTYPE, *USERDATA | ||
Element 2: Check next | *NONE, *FORMTYPE, *USERDATA, *SPLFNAME | ||
Element 3: Check last | *NONE, *USERDATA, *SPLFNAME, *FORMTYPE | ||
VERSION | Version | 1-99, *HIGHEST | Optional |
ERROUTQ | Error output queue | Qualified object name | Optional |
Qualifier 1: Error output queue | Name, ERROR | ||
Qualifier 2: Library | Name, QUSRRDARS, *LIBL, *CURLIB | ||
DLTSPLF | Delete processed spooled files | *NO, *YES | Optional |
PRCOUTQ | Processed output queue | Qualified object name | Optional |
Qualifier 1: Processed output queue | Name, PROCESSED | ||
Qualifier 2: Library | Name, QUSRRDARS, *LIBL | ||
ENDDATE | End date | Character value, *NONE, *TODAY, *TIME | Optional |
ENDTIME | Time to end | Time, 235500 | Optional |
CHKITV | Check interval | 0-99999, 90, *IMMED, *MAX | Optional |
NBRMON | Number of monitors to start | 1-99, 1 | Optional |
SBMJOB | Submit to batch | *YES, *NO | Optional |
JOBD | Job description | Qualified object name | Optional |
Qualifier 1: Job description | Name, QRDARS400 | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB |
Top |
Specifies the name and library of the output queue for which a monitor is to be started.
This is a required parameter.
Qualifier 1: Output queue
Qualifier 2: Library
Top |
Specifies which spooled file attribute to use as the report name source. Up to three sources can be specified. If a valid report definition is not found using the first source, the second source is used. If a valid report definition is not found using the second source, the third source is used.
Each value other than *NONE can only be used once.
Element 1: Check first
Element 2: Check next and Element 3: Check last
Top |
Specifies which version of the report definition is used to store the report.
Top |
Specifies the name of the output queue to receive spooled files that STRCDSRDAR fails to store.
Qualifier 1: Error output queue
Qualifier 2: Library
Top |
Specifies whether or not to delete a spooled file that STRCDSRDAR stores successfully. If STRCDSRDAR is unsuccessful, the spooled file is not deleted.
Top |
Specifies the name of the output queue to receive spooled files that STRCDSRDAR stores.
Qualifier 1: Processed output queue
Qualifier 2: Library
Top |
Specifies the date when the monitor will automatically end.
Specify a date using the format YYYYMMDD where YYYY represents the year, MM the month, and DD the day. Do not use any type of special characters to separate year, month, and day values.
Top |
Specifies the time when the monitor will automatically end.
Top |
Specifies in seconds, how long the monitor will wait for a spooled file to become ready on the output queue. Once this time has expired, a check is made to see if:
Note: Specifying a small value will cause the monitor to use more of the available CPU time.
Note: Specifying a smaller number will cause degraded performance for lower priority jobs.
Top |
Specifies the number of monitors to start with these characteristics.
Top |
Specifies if you want to monitor the output queues in this current job or in a another job.
Note: *YES must be specified when the NBRMON parameter is greater than 1.
Top |
Specifies the name of the job description used for the submitted job.
Qualifier 1: Job description
Qualifier 2: Library
Top |
Example 1: Simple Example
STRMONRDAR OUTQ(QUSRRDARS/ONDEMANDQ)
This command submits a job to batch that monitors for spooled files that are to be archived into OnDemand Spooled File Archive. When issued with no other parameters, the monitor uses the spooled file name attribute of the spooled file as the report definition name. Spooled files that do not archive successfully are moved to the ERROR output queue in the QUSRRDARS library. Spooled files that do archive successfully are also not deleted; they are moved to the PROCESSED output queue in the QUSRRDARS library. This command as shown will submit the monitor job without any specified end criteria.
Example 2: More Complex Example
STRMONRDAR OUTQ(QUSRRDARS/ONDEMANDQ) RPTNAMSRC(*SPLFNAME *FORMTYPE *USERDATA) DLTSPLF(*YES) ENDDATE(*TIME) ENDTIME(235900)
This command submits a job to batch that monitors for spooled files that are to be archived into OnDemand Spool File Archive. The monitor attempts to use spooled file name and then form type and then user data attributes of the spooled file (in that order) for use as the report definition name. With this command example, successfully processed spooled files are deleted automatically; spooled files that do not archive successfully are moved to the ERROR output queue in the QUSRRDARS library. In this example, the monitor will end at one minute before midnight of the current day.
Top |
*ESCAPE Messages
Top |