How to make an OPS REXX program produce a non-zero step return code?
search cancel

How to make an OPS REXX program produce a non-zero step return code?

book

Article ID: 233258

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Running OPS/REXX programs in batch. Is there a way to make the step terminate with different return codes?

Environment

Release : 14.0

Component : OPS/MVS

Resolution

The REXX exit instruction can be used to generate the step return code. 

For example:

exit(0)  -  step will end with rc=0

exit(8) -  step will end with rc=8

Sample REXX:

         
if <condition> then exit(0)
         else exit(8)