STEPXXX FLUSH



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

STEPXXX FLUSH

Postby pawelo » Fri Dec 28, 2007 7:02 pm

Hi all

I got a cyclic job, that merges several files and creates one on output. Works well, but ... :)
When one of files does not exist, job ends with strange "FLUSH" word instead of RC.
I'd like to stop this cyclic job in case flush occurs (By "STOP" i mean stop cycle, that job will not be in state "waiting schedule" after bad run).
Is it somehow possible through either JCL or SCH ?

Best regards!
pawelo
 
Posts: 2
Joined: Fri Dec 28, 2007 6:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: STEPXXX FLUSH

 

Re: STEPXXX FLUSH

Postby pawelo » Fri Dec 28, 2007 8:29 pm

As usual change was nice and small.
In sch definition for my job i had stop condition such as
IF ANYSTEP ENDS WITH RC > C0004 DO STOPCYCL.
i changed it to
IF ANYSTEP ENDS WITH RC NOTOK DO STOPCYCL.

and from now, when step020 ends with flush signal, jcl ends and stopps cycle :)
question closed.
:D

Regards
pawelo
 
Posts: 2
Joined: Fri Dec 28, 2007 6:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: STEPXXX FLUSH

Postby arunprasad.k » Mon Dec 31, 2007 1:50 pm

What Utility you are using?

It would be great if you could post your error messages and some sample code.

Arun.
arunprasad.k
 
Posts: 110
Joined: Thu Dec 27, 2007 5:18 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post