Unattended Playback: Submitting the Job (MQ)
Once the job is prepared, submit it in one of the following ways:
- Submit the job from the ISPF Edit session to execute it immediately. Type SUB on the Command line and press Enter.
- Schedule the job to run at a specific time. Refer to your job scheduler’s documentation for help.
After the job has completed, review the return codes to see if playback completed successfully or to determine the cause of failure.
Review playback return codes
Performance Test for WebSphere MQ reports an MVS return code for each step of a playback job. The return code is a numeric value that indicates whether the job step completed successfully and to what degree. See Playback Return Code Descriptions for a complete list of MQ playback return codes.
The location of your return codes is dependent on your system configuration. On some systems, with the correct job statement parameter, return codes appear in the user’s TSO session. On others, they are written to a job log. If you need help locating your return codes, see your system administrator.
Performance Test for WebSphere MQ also writes the following informational messages to the SYSPRINT upon job completion.
TCPSRPL-0051I Play complete for Replay=1 - Return Code=xxxx.
TCPPBMN-0007I Maximum return code=xxxx
Message TCPSRPL-0051I reports the return code from the indicated playback session (Replay). Performance Test for WebSphere MQ produces one of these messages for each playback session in the job step. For example, the following playback statements result in six playback sessions (Playback Sessions for a MQGROUP Statement with COUNT(2) REPEAT(3)) and therefore, six TCPSRPL-0051I messages:
SCRIPT(TEST)
Playback sessions for a MQGROUP statement with COUNT(2) REPEAT(3)
Repeat | Count 1 | Count 2 |
---|---|---|
1 | Replay=1 | Replay=2 |
2 | Replay=3 | Replay=4 |
3 | Replay=5 | Replay=6 |
Message TCPPBMN-0007I reports the maximum return code from all of the playback sessions in the job step. This is the value that Performance Test for WebSphere MQ returns as the job step completion code.
If the MQGROUP statement contains multiple scripts, Performance Test for WebSphere MQ returns the value set by the last script processed. Incidentally, playback terminates MQGROUP processing if it encounters a non-zero return code. For example, Performance Test for WebSphere MQ reports the return code from the LOGOFF script in the following MQGROUP, unless LOGON or TEST produce a non-zero return code.
SCRIPT(LOGON)
SCRIPT(TEST)
SCRIPT(LOGOFF)
Playback return code descriptions
Performance Test for WebSphere MQ writes the following information to SYSPRINT:
- A return code message for each playback session in the job step.
- A message indicating the maximum return code for the job step.
- Playback status, warning, and error messages.
If you receive a non-zero return code, review the return code description provided in the following table. Then review the warning and error messages to determine the cause of the problem. Refer to Messages-and-Codes for help with error resolution.
Performance Test for WebSphere MQ internal return codes
Code | Description |
---|---|
0 | All scripts ran successfully without errors. |
4 | Playback ended due to one of the following:
|
8 | Playback ended due to one of the following:
|
12 | Playback is terminated due to a system failure. For example, if you are not licensed to use Performance Test for WebSphere MQ, or no OMVS segment is available. Contact your system administrator. |
100 | Playback is terminated because the playback job does not include an ERRORLOG DD statement. Insert an ERRORLOG DD statement before the SYSOUT DD in the playback JCL. |