![Start of change](./delta.gif)
ADD_TRACKED_JOB_QUEUE procedure
The ADD_TRACKED_JOB_QUEUE procedure registers a job queue to be tracked by adding it to the tracked job queue list.
For a subsystem to track jobs, there must be at least one tracked job queue registered to the Submitted Job Tracker when that subsystem starts.
For more information about the Submitted Job Tracker, see Submitted Job Tracker.
Authorization: The caller must have *JOBCTL special authority.
The schema is QSYS2.
- iasp-name
- A character string that contains the name of the ASP where job-queue-library is located.
The ASP does not need to exist. Can contain the following special value:
- *SYSBAS
- The job queue library is located in the system ASP (ASP 1) or any basic user ASPs (ASPs 2-32).
- job-queue-library
- A character string that contains the name of the library containing job-queue. The library does not need to exist.
- job-queue
- A character string that contains the name of the job queue to be tracked. A job queue can be registered even if it does not exist.
- job-retention-period
- An integer value that specifies the number of minutes job tracking information will be retained in the tracking file after the job has ended. The default is 0, which indicates that the job tracking information is immediately eligible for removal when the job ends.
- tracking-file-iasp
- A character string that contains the name of the IASP where the job tracking file for job-queue is to be created. If a value is provided for this parameter, iasp-name must have a value of *SYSBAS.
Example
- Add job queue APPLIB/APPJOBQ to the list of tracked job queues.
CALL QSYS2.ADD_TRACKED_JOB_QUEUE(IASP_NAME => '*SYSBAS', JOB_QUEUE_LIBRARY => 'APPLIB', JOB_QUEUE => 'APPJOBQ');
![End of change](./deltaend.gif)