the concept has been told and repeated gazillions times
the only thing You can pass back to <JCL> is a numeric return code!
look at the COBOL manuals for the use of the RETURN-CODE special register
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort