Previous Topic Next topic Print topic


User or System ABEND Handling

If a user or system abend occurs, MFBSIJCL returns the decimal value of the user or system status code by default. If this value is greater than 199, MFBSIJCL returns a final return code 16. Otherwise, the return code corresponds to the status code. For example, a user abend with return code 12 returns code 12.

A user or system JCL abend can return a specified return code to the scheduler. In the MFBSI configuration file, the parameters SYS-ABEND-RC and USR-ABEND-RC can be set to force the OS return code to be returned to the scheduler. SYS-ABEND-RC and USR-ABEND-RC cannot be set on the command line for MFBSIJCL.

This table shows the specific OS codes returned from MFBSIJCL.

Return Code Description
200-231 Indicates an error specific to MFBSIJCL, such as MFBSI_DIR not set, unknown or missing parameters, or error during job submission (CASSUB/CASOUT)

See the topic on specific return codes issued by MFBSIJCL for descriptions of each return code.

208 JCL error. Job not submitted.
209 Unknown Server Enterprise Edition or Server Enterprise Edition/MSS not started.

JCL file not found.

211 Return code received from Server Enterprise Edition/MSS is not numeric
0-16 Error code returned by Server Enterprise Edition/MSS JCL (job execution).
0 Execution successful.
16 Unsuccessful job execution.

In the job log written by MFBSIJCL, either in SJobId.Log or using STDOUT, messages provide additional information. For example:

JCLSI0004S SCHEDJ107  Parms: -rES-JCL -jC:\ES_JCL\ iefbr14.jcl END sjobid=J17 X=Yes
JCLSI0004S SCHEDJ107  Rc:203 Unknown parameter following " END ".

JCLSI0001I SCHEDJ109  Parms: CASSUB.exe -rES-CICS -jC:\ES_JCL\ iefbr14.jcl
Failed to connect to region ES-CICS return-code:    1-

The purpose of these messages is to allow additional scheduler error processing.

Message Description
JCLSI0000I Displays the version of MFBSIJCL
JCLSI0001I

The first line shows the CASSUB command used. the lines following show the output returned by CASSUB.

JCLSI0002I JCL job execution started.
JCLSI0003I JCL job execution completed.
JCLSI0004S MFBSIJCL detects errors in parameters/configuration file.
JCLSI0005I Job execution summary.
Previous Topic Next topic Print topic