2.7.3 Defining jobs as PC or UNIX jobs
- Organization of this subsection
(1) Defining jobs as PC jobs
This subsection explains the items required to define JP1/Advanced Shell batch jobs as PC jobs.
-
File name
Specify the path of the adshexec command in File name on the Definition tab in the Define Details - [PC Job] dialog box or in sc="script-file-name" in the unit definition file:
"installation-folder\JP1ASE\bin\adshexec.exe"
-
Parameters
Specify the options, job definition script file name, and runtime parameters for the adshexec command in Parameters on the Definition tab in the Define Details - [PC Job] dialog box or in prm="parameter" in the unit definition file.
-
Environment variables
Specify the following value in Environment variables on the Definition tab in the Define Details - [PC Job] dialog box or in env="environment-variable" in the unit definition file:
AJS_BJEX_STOP=TERM
The following figure shows a specification example of a JP1/Advanced Shell batch job.
(2) Defining jobs as UNIX jobs
This subsection explains the items required to define JP1/Advanced Shell batch jobs as UNIX jobs.
-
Script file name
Specify the path of the adshexec command in Script file name on the Definition tab in the Define Details - [UNIX Job] dialog box or in sc="script-file-name" in the unit definition file:
/opt/jp1as/bin/adshexec
Alternatively, you can specify the path of the adshexec command following #! on the first line (example: #!/opt/jp1as/bin/adshexec), and then specify the path of the job definition script file with execution permissions granted:
path-of-job-definition-script-file
Do not specify this information in Command statement on the Definition tab in the Define Details - [UNIX Job] dialog box or in te="command-text" in the unit definition file.
-
Parameters
Specify the options, job definition script file name, and runtime parameters for the adshexec command in Parameters on the Definition tab in the Define Details - [UNIX Job] dialog box or in prm="parameter" in the unit definition file.
If you specified a job definition script file name for the script file name, specify only the runtime parameters.
-
Environment variables
Specify the following value in Environment variables on the Definition tab in the Define Details - [UNIX Job] dialog box or in env="environment-variable" in the unit definition file:
AJS_BJEX_STOP=TERM
The following figure shows a specification example of a JP1/Advanced Shell batch job.