Endevor

  • 1.  Endevor RC

    Posted May 23, 2012 08:04 AM
    Hello, I recently created a jobscan processor without a maxrc. We do want the jcl element to generate even if there is a high return code of 8. The developers would like to be notified if the jcl generate gets a return code of 8. When this happens the processor RC is 8 but the Endevor RC is 0. Is there a way to change the Endevor RC to an 8 so we can have the move package job check for that RC? Thanks!


  • 2.  RE: Endevor RC

    Posted May 23, 2012 08:44 AM
    I'm not sure that I understand what you really want to do. But yes, you can change the Endevor return code to 8 by setting the MAXRC=4 in the generate processor. Then the element will FAIL if the jobscan gets a return code 8. If this happens they will not be able to Move the element. If you don't want to FAIL the element and prevent the Move, then you need to keep the MAXRC=8. However, you could also code the jobscan in the Move processor if that fits your requirement better.

    Maybe if you explain what you are trying to accomplish we can give you some other ideas.

    Kevin


  • 3.  RE: Endevor RC

    Posted May 23, 2012 10:22 AM
    Kevin,
    We don't want the element to fail if it gets an 8 so I don't have a maxrc in the processor. If it does get an 8 we want the package move job to get a return code of 8 where now it just gets a 0 since there is no maxrc.


    Thanks,
    Tony


  • 4.  RE: Endevor RC

    Posted May 23, 2012 10:48 AM
    Tony,

    Why do you want to allow them to build an execute a package to move JCL to the next stage if the jobscan get an rc=8? Do you want the package execution to fail?

    I see a couple options that might work depending on your requirements. You could leave the MAXRC=8 in the Generate processor and set the MAXRC=4 in the Move processor which could execute another jobscan. Then if this jobscan still gets a rc=8 then move action and package would fail. If you don't want to reexecute the jobscan then you could have the move processor execute an API program that evaluates the return code from the previous generate action. Or perhaps you could have an Endevor exit program evaluate the return code from the previous generate.

    Maybe someone else can add some other ideas.


  • 5.  RE: Endevor RC

    Posted May 23, 2012 11:06 AM
    The developers decided that they don't want the package to fail if it gets an 8 but to receive an email if it does as a reminder. Within our move package job we check for return codes and send an email to a group if the return code is higer than 4. The current move processor for our jcl is the generic noproc.


    Tony


  • 6.  RE: Endevor RC

    Posted May 23, 2012 12:10 PM
    Tony,

    then would it be possible to add a processor step that sends an email when the jobscan step ends with RC08.
    This should be easy to do with a user program (REXX, COBOL) that calls BC1PMLIF (see utilities guide).

    Jan


  • 7.  RE: Endevor RC
    Best Answer

    Posted May 23, 2012 01:29 PM
    Thanks Jan! That's what I'm going to do. I added a step in the processor to check for a return code 8 and if gets an 8 it will run a step to send an email. The only problem is if a package has multiple 8's then several emails will get sent out but hopefully there shouldn't be many bad return codes. Thanks for the replies Jan and Kevin!



    Tony