CA7 : SCC Job failing with RC of 0 in CA7



Unicenter CA-7 Job Management: CA's workload automation tool for managing, visualizing, automating, optimizing applications

CA7 : SCC Job failing with RC of 0 in CA7

Postby vinod.tavva » Fri Jul 26, 2013 6:04 am

Hi All,

My Job is failing with an RC of 00 the job. RO in the job panel is #S.

I have 3 steps

STEP02 is getting an RC of 08 and this is getting acceptable in CA7.
#SCC,COND=(1-7,EQ,CHKTL2)
#SCC,COND=(9-4095,EQ,CHKTL2)

STEP03 is getting an RC of 08 and this is getting acceptable in CA7.
#SCC,COND=(1-7,EQ,CHKTL2)
#SCC,COND=(9-4095,EQ,CHKTL2)

STEP01 is getting an RC of 0, but the job is failing in this step with an RC of 0 In Ca7.
#SCC,COND=(1-7,EQ,CHKTL1)
#SCC,COND=(9-4095,EQ,CHKTL1)


Can you someone help me how to get rid of RC of 0 in ca7.
vinod.tavva
 
Posts: 5
Joined: Tue Dec 21, 2010 5:52 pm
Has thanked: 0 time
Been thanked: 0 time

Re: CA7 : SCC Job failing with RC of 0 in CA7

Postby Robert Sample » Fri Jul 26, 2013 7:21 am

CA-7 is doing EXACTLY what the step condition code (#SCC) statements indicate should happen. Zero is not considered a valid condition code for STEP1 of that job. You may change this situation by not allowing STEP1 to end with a zero return code (which may require code changes in whatever language that program is written in), or changing the #SCC statements to indicate that return code of 0 is valid for STEP1 -- your choice.

And the job is NOT failing in CA-7: the job requires a restart because it did not have an acceptable return code -- this is not "failing" but merely a restart requirement.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to CA-7