Previous Topic: External Processing Move ModelsNext Topic: Miscellaneous Move Models


Managing External Processing Jobs

Model Name: APJMCOMJ

Purpose: Creates leading job start JCL for External Processing models.

Processing Overview: This model is invoked by other external processing models to construct leading JCL for each member's external processing.

The operation of this model is controlled by the $G$COMPILES_GROUPED user keyword, which is specified in the APJMLEAD model. A value of N means that each member's external processing is to be performed as a separate job. This is the default. A value of Y means that all external processing must be grouped together in a single job if possible.

When separate jobs are to be used, this model appends a step the previous external processing job (which is in its own member on APTMDLO) to submit the current member's external processing job upon completion. Then it constructs the start of the current member's external processing in a new member on APTMDLO. This member begins with a JOB statement and might contain other statements, such a JOBLIB DD's. The member name of the new member is returned to the external processing model through the $G$COMPJCL_CURR user keyword.

When a single job is to be used, this model builds the leading job control only for the first member presented to modeling for external processing. The name of this member is always returned to the external processing model regardless of whether it was just created through the $G$COMPJCL_CURR user keyword.

The actual leading JCL is constructed in the APJMJBST model, which this model invokes.