Hi Lo,
You can do this:
MOVE 8 TO RETURN-CODE
before exiting your pgm. That 8 or whatever you choose becomes the CC for the step that execed your pgm. It can be tested using the JCL COND or IF/THEN/ELSE clauses in subsequent steps.
RETURN-CODE must not be coded in WS; it's called a special register and is treated as a reserved word in COBOL.
Regards, Jack.