FOCUS Utility return code

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
shravan.satya
Member
Posts: 2
Joined: Thu Oct 24, 2013 7:27 pm

FOCUS Utility return code

Post by shravan.satya » Thu Oct 24, 2013 7:41 pm

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 :D

Thanks and regards,
Shravan

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Thu Oct 24, 2013 9:52 pm

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 . . .
Have a good one

shravan.satya
Member
Posts: 2
Joined: Thu Oct 24, 2013 7:27 pm

Post by shravan.satya » Fri Oct 25, 2013 11:21 am

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 . . .
Hi Dikdude,

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 :cry:

Thanks and regards,
Shravan

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Mon Oct 28, 2013 12:39 am

I expect the "how to" is still in the documentation.

As I mentioned, I no longer have FOCUS manuals.

Have you tried "-QUIT FOCUS errornumber"?
Have a good one

Post Reply

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



Other References
Mainframe Tools and others