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

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
Gilles
Posts: 16
Joined: Mon Sep 29, 2008 6:10 pm
Skillset: Rexx
Referer: Internet

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.

User avatar
MrSpock
Global moderator
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
Referer: ibmmainframes.com
Location: Raleigh NC USA
Contact:

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
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

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:

pooja katiyar
Posts: 2
Joined: Wed Nov 05, 2008 3:25 pm
Skillset: JCL,COBOL,CICS,DB2,VSAM
Referer: website

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.


  • Similar Topics
    Replies
    Views
    Last post