How to set return code in REXX?

How to set return code in REXX?

If you want to set the return value of your method you need to use the “return” commend and to get the return code with the “result”, for example: /* REXX – program A */ SAY “THIS IS PROG.

How do I find my REXX return code?

The REXX return code variable, RC, is set after completion of each instruction, command, or nested command list. You can use the EXIT statement in a nested command list to end the command list and set RC to a value that is passed back to the calling command list.

What are the different return codes in mainframe?

RETURN-CODE, User, System, and RTS ABEND Handling

Return CodeDescription
211Job ended, no numeric RC returned.
0-16Usual error codes returned by Enterprise Server/MSS JCL (job execution).
0JOB execution successful.
16Unsuccessful JOB execution.

What is return code JCL?

When a job completes, a return code is set based on the status of execution. The return code can be a number between 0 (successful execution) to 4095 (non-zero shows error condition). The most common conventional values are: 0 = Normal – all OK.

What are the JCL errors?

A JCL error was recognized after the job or started task began to execute, or a JCL error was recognized after syntax checking in the internal reader. A JCL error occurred immediately; that is, the error was detected before the job or started task began.

What logs are printed in Sysprint in JCL?

The SYSPRINT DD statement defines the output data set containing the end-of-step reports and any error messages. Normally it defines a SYSOUT data set. If the SYSPRINT DD statement is not in the JCL, the output of SYSPRINT is dynamically allocated to the default SYSOUT class—normally MSGCLASS.

How do you give Jcllib in JCL?

Following is the basic syntax of a JCL JCLLIB statement: //name JCLLIB ORDER=(library1, library2….) The libraries specified in the JCLLIB statement will be searched in the given order to locate the programs, procedures and INCLUDE member used in the job.

You Might Also Like