The Pre Process tab is an object type-specific tab which is only available in "Job" objects. It can be used to store processing commands in AE's scripting language.
Object: Job
Object class: Executable object
Object type
(short name): JOBS
The script is either processed when the job is activated or when it starts. The particular point in time depends on the setting "Generate at runtime" which can be activated in the Attributes tab.
As opposed to the Process tab, the Pre-Process tab's processing commands are processed in the header. Thus, statements can be used here which are executed before the Job Messenger becomes involved.
The Pre Process and Process tabs are processed in one go. This means that it is possible to set script variables in the Pre-Process tab which can also be accessed in the Process tab.
The script statement :INC_SCRIPT can be used to insert the Pre-Process tab's content somewhere else.
Particularities for z/OS
In Pre Process, you can define all JCL commands (e.g. JCLLIB, JOBCAT, JOBLIB, OUTPUT etc. ) which must be defined after the job card but before the script's first step.
The Event Monitor only considers Pre-Process tab steps if this tab's first step has the same name as the AE system. Otherwise, canceled Pre-Process job steps do not affect an AE job's end status.
Example:
Name of the AE system: UC4PROD
Pre-Process tab:
//JOBLIB DD DISP=SHR,DSN=.....
// DD DISP=SHR,DSN=....
//UC4PROD EXEC PGM=modname
Process:
//STEP01 EXEC PGM=IEFBR14
//STEP01 EXEC PGM=IEBGENER
See also:
Script Editor
About AE Scripts
Sample Collection