RETURN CODE is the standard mechanism for passing completion status back from COBOL programs to JCL. While DD NAME and SYSIN pass data the other way (JCL to program), RETURN CODE specifically passes values from the executing program back to JCL for conditional job control.