Return code choices
Several IMS Cloning Tool provide you with the option to set the return codes that are issued when at least one specific circumstance is encountered for a keyword.
That is, you can choose the seriousness of a situation. The scenarios
that are discussed in this document assume that the conditional execution
of subsequent steps adheres to the following return code conventions:
- Return code 0 means successful.
- Return code 4 means warning.
- Return code 8 means an error.
The following example JCL and control statements indicate that
a “not-renamed” situation should be treated as a critical error:
//RENAME EXEC PGM=GCL00010
//GCLIN DD *
RENAME -
NOTRENAMED (DELETE,RC(8))
//IFOK IF (RENAME.RC < 8) THEN
//TARGETOK EXEC PGM=application-program-that-uses-target-volumes