Is it possible to reset condition codes midway thru a job ?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Is it possible to reset condition codes midway thru a job ?

Postby Gilles » Fri Oct 31, 2008 9:29 pm

Let's say I have a job with 4 steps.

Step1 = Return code 8
Step2 has COND=(4,LT) therefore it is bypassed
Step3 should execute whatever happens and has no COND parameter
Step4 has COND=(4,LT) therefore it it bypassed.

What I would like that job to do is :

RUN STEP1 -->> CODE 8
BYPASSE STEP2
RUN STEP3 -->> CODE 0
RUN STEP4 according to return codes starting at STEP3 instead of return codes of all previous steps.

Is there a way, just before STEP3 to reset the highest return code so far obtained for all subsequent steps ? I know I could split those steps in two jobs or code elaborated COND statements of IF statements. But I would just like to know if there is a command to reset the return codes midway thru a job. Maybe it's impossible. I'm just curious.
Gilles
 
Posts: 16
Joined: Mon Sep 29, 2008 6:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Is it possible to reset condition codes midway thru a job ?

 

Re: Is it possible to reset condition codes midway thru a job ?

Postby MrSpock » Fri Oct 31, 2008 9:30 pm

It's impossible.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Is it possible to reset condition codes midway thru a job ?

Postby dick scherrer » Sat Nov 01, 2008 1:20 am

Illogical. . .

Devil made me. . . :twisted:
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Is it possible to reset condition codes midway thru a job ?

Postby pooja katiyar » Wed Nov 05, 2008 3:56 pm

Dear
I think its not possible.
pooja katiyar
 
Posts: 2
Joined: Wed Nov 05, 2008 3:25 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post