1.3.1 Procedure for executing batch jobs automatically (working with JP1/AJS)
When you use JP1/Advanced Shell to run batch jobs, you can call the execution environment from the job scheduler's JP1/AJS so that the batch jobs can execute automatically. JP1/Advanced Shell provides job controller functions that manage execution of a user's business applications. The following figure shows the positioning of JP1/Advanced Shell for business applications.
When you link JP1/Advanced Shell to JP1/AJS, you can register batch job execution schedules for executing batch jobs.
A job definition script containing job definitions is analyzed by the job controller. The job controller controls execution and termination of batch jobs by allocating and releasing input and output devices and various system resources. JP1/Advanced Shell achieves central management by executing this job definition script and collecting the execution results on the spool.
The figure below shows the JP1/Advanced Shell operation procedure. In the figure, the processing performed by JP1/AJS is identified by the number 3, and the processing performed by JP1/Advanced Shell is identified by the numbers 4 through 6.
To run JP1/Advanced Shell:
Create job definition scripts.
Transfer the job definition scripts to JP1/Advanced Shell's execution environment.
The job controller starts according to a schedule registered in JP1/AJS.
The job controller executes batch jobs using the procedure shown below according to the contents of a job definition script created in step 1.
Analyze the job definition script
Allocate file resources
Execute jobs and job steps
Release file resources
Collect the batch job execution results on the spool for central management.
If necessary, use commands to display coverage information and to output information about the execution results of the job definition scripts.