Previous Topic: Miscellaneous Development Facility and Retrieve ModelsNext Topic: Reporting the Status of a Retrieve


Reporting Outcome of Development Facility Action or Retrieve

Model Name: APJMSEND

Usage: Development Facility. Retrieve Processing.

Purpose: Generate JCL to report the outcome of a Development Facility action or Retrieve job, based on condition codes.

User keywords passed to the model:

COND_PFX

Contains the prefix, if any, for the CONDnn keywords.

<COND_PFX>COND1 through <COND_PFX>COND8

Contains the condition code values to test for success. These are passed along to the APJMCOND model.

GOODMSG

Contains the text of the message to send to indicate success. This keyword cannot contain any apostrophes and must be less than 60 characters long.

FAILMSG

Contains the text of the message to send to indicate failure. This keyword cannot contain any apostrophes and must be less than 60 characters long.

SENDMETHOD

Indicates how the message is sent. The valid values are SEND for the TSO SEND command and APAS0075 for the CA‑PanAPT utility.

The APAS0075 utility uses the TPUT macro and runs faster than the TSO SEND command method. However, it can experience S522 abends if more than a screen's worth of messages are sent and the user does not clear the screen in a reasonable amount of time (there are comments regarding this in the model).

The TSO SEND command has the ability to queue up messages if the user is not logged on, until the user logs on again.

The default is SEND. You can change the default in the APJMLEAD model if you want.

Processing Overview: If the conditions pass, the GOODMSG text is sent to the user; otherwise, the FAILMSG text is sent to the user.