Where to Specify Job Attributes
Procedure
The following table shows for each attribute of a job:
-
whether the attribute applies to a job as a whole or only to a single job step
Each of the programs in a job forms a separate job step. For each job step, you can make separate specifications for attributes other than the start date and target system for running the job.
-
where and how the value for each attribute is assigned.
For programming examples of the attributes, please see the next section. Values for most of the attributes are predefined in the ABAP module LBTCHDEF.
|
Attribute |
Applies to Job or to Job Step |
Where to Specify |
|
Job name |
Job |
JOB_OPEN, parameter JOBNAME |
|
Job number |
Job |
JOB_OPEN (returned by system), parameter JOBCOUNT |
|
Job priority |
Job |
Always set by default to class C. No other priority can be set with the background programming interface. You can set other priorities only by hand, in the job-scheduling transaction (SM36, also SM37). |
|
Immediate start |
Job |
JOB_CLOSE, parameter STRTIMMED |
|
Start and repeat specifications |
Job |
JOB_CLOSE, various parameters. See the programming samples in Task Overview: Full-Control Job Scheduling |
|
Target system for execution |
Job |
JOB_CLOSE, parameter TARGETSYSTEM |
|
Automatic deletion after job has run |
Job |
JOB_OPEN, parameter DELANFREP |
|
Recipient for mailed spool requests generated by job |
Job |
JOB_CLOSE, parameter RECIPIENT_OBJ |
|
Name of report to run |
Job step |
|
|
Variant for report |
Job step |
JOB_SUBMIT, parameter VARIANT, ABAP SUBMIT, parameter USING SELECTION-SET |
|
Values for selection variables |
Job step |
ABAP SUBMIT, various parameters. See The ABAP User's Guide |
|
Name and operating-specific variant of external command to run |
Job step |
JOB_SUBMIT, COMMANDNAME and OPERATINGSYSTEM parameters |
|
Name of external program to run |
Job step |
JOB_SUBMIT, EXTPGM_NAME parameter |
|
Argument string for external program |
Job step |
JOB_SUBMIT, EXTPGM_PARAM parameter |
|
Target system for external program |
Job step |
JOB_SUBMIT, EXTPGM_SYSTEM parameter |
|
Control options for external program |
Job step |
JOB_SUBMIT, various parameters. See Sample Program: Adding a Job Step for an External Command or Program |
|
User for job run-time authorizations |
Job step |
JOB_SUBMIT, AUTHCKNAM parameter. ABAP SUBMIT |
|
Printing and archiving specifications |
Job step |
JOB_SUBMIT, ABAP SUBMIT using GET_PRINT_PARAMETERS to supply specifications |