Hi,
I am working with FOCUS utility in JCL since a week. My question is as follows:
My JCL has multiple steps. One particular step is that of Focus utility. Now I need to identify the variable that holds the focus's return code and if that variable is not zero, I need to pass a value of 1 to the JCL return code.
JCL always issues zero return code even if the focus step fails and other steps run succesfully. Focus return code is different from JCL return code and I need to identify the focus return code. Because I cannot identify the variable that holds the focus return code and use proper error handling, the final JCL return code is issued as zero and the job is passed to EOS as all succesful jobs end in EOS.
I want to place suitable error handling that if the focus step returns any error code other than zero, a return code of 1 should be passed to JCL return code and the job should be held in the queue and not sent to EOS.
So please let me know which jcl utility variable holds the focus return code.
Hope this is clear
Thanks and regards,
Shravan
FOCUS Utility return code
Moderators: Frank Yaeger, Moderator Group
-
- Member
- Posts: 2
- Joined: Thu Oct 24, 2013 7:27 pm
Hi Dikdude,DikDude wrote:In the FOCUS process, you must set the return code.
I have no manuals any more as it has been 25+ years since i was the FOCUS support person . . .
Could you please tell me how I can set the return code, I can use the SET verb but what is the focus return code variable to which I can set a value? Is it &RETCODE? I haven't been able to find any info about this in google
Thanks and regards,
Shravan
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page