Question & Answer
Question
How can a user capture job information using the Advanced Job Scheduler?
Answer
Capturing job information to allow application software to run automatically in Job Scheduler requires special handling because parameters or values used in the job are difficult to obtain and analyze. By processing a single command, you can receive help from the Job Scheduler in capturing job information about jobs that are normally submitted immediately through an application software package.
To begin capturing application software job information, you should issue the following command:
STRJS OPTION(*CAPTURE)
As part of the STRJS command process, Job Scheduler places the Job Scheduler submit job command (SBMJOB) ahead of the IBM SBMJOB command by placing the QUSRIJS library at the top of the library list. In this way, when a job is submitted, the attributes of the job are placed in the Add Job using Job Scheduler (ADDJOBJS) command.
Note: This procedure does not work if the application software package qualifies the SBMJOB command.
STRJS OPTION(*CAPTURE)
As part of the STRJS command process, Job Scheduler places the Job Scheduler submit job command (SBMJOB) ahead of the IBM SBMJOB command by placing the QUSRIJS library at the top of the library list. In this way, when a job is submitted, the attributes of the job are placed in the Add Job using Job Scheduler (ADDJOBJS) command.
Note: This procedure does not work if the application software package qualifies the SBMJOB command.
When a job is submitted for which you have captured job information, the ADDJOBJS command is prompted, and you can name the job and tailor it for your specific requirements. Once the job has been added, the Change Job LDA display is shown, and the F10=Current LDA function key can be used to capture the current LDA information.
Now each time Job Scheduler runs, the job will use the captured job information from the application software. To end capturing application software job information, you should issue the following command:
ENDJS OPTION(*CAPTURE)
The End Job Scheduler (ENDJS) command removes the QUSRIJS library from the user library list.
References:
Job Scheduler for OS/400, SC41-5324, Chapter 9, Capturing Job Information.
ENDJS OPTION(*CAPTURE)
The End Job Scheduler (ENDJS) command removes the QUSRIJS library from the user library list.
References:
Job Scheduler for OS/400, SC41-5324, Chapter 9, Capturing Job Information.
[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CNEAA2","label":"Advanced Job Scheduler"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"and future releases;7.3.0;7.4.0;7.5.0;7.6.0"}]
Was this topic helpful?
Document Information
Modified date:
05 September 2025
UID
nas8N1020336