COND Parameter



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

COND Parameter

Postby Virtual » Fri Dec 02, 2011 7:11 am

I've a basic question on COND parameter:

1) When we give cond parameter to bypass a step the syntax is like ex: cond=(4095,GT). My question is the value 4095 is compared to return code of what?

For Example we have five step S01,S02,S03,S04 and S05 and I want to bypass S05 and I'm giving this condition in S05. I can see in spool s01,s02,s03,s04 excuted with RC=0 but S05 not excuted because of the condition code but 1) when this comparison happened system compared 4095 to the return code of which step or for the entire job.2) The question is if the condition code is compared to the excution of the last step or the entire job then does the OS executed the step S05 in background and only didn't show it in spool because of this condition code?
Virtual
 
Posts: 1
Joined: Fri Dec 02, 2011 6:57 am
Has thanked: 0 time
Been thanked: 0 time

Re: COND Parameter

Postby dick scherrer » Fri Dec 02, 2011 10:33 am

Hello and welcome to the forum,

Unless specified, the condition code to be tested is from the preceeding steps.

Suggest you spend some time in the JCL Language Reference Manual and learn more about cond=.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: COND Parameter

Postby NicC » Fri Dec 02, 2011 1:49 pm

A batch job IS background.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: COND Parameter

Postby Anuj Dhawan » Tue Dec 06, 2011 2:25 pm

Like your user-name, you're talking about a lot of virtual concepts. If you look at the syntax of COND, it is self explanatory:
 COND{.procstepname}=(code,operator{,stepname}{.procstepname})     
If you code the step name, it'll check the RC of that step, if no step-name is coded, it's about the previous step.

The question is if the condition code is compared to the excution of the last step or the entire job then does the OS executed the step S05 in background and only didn't show it in spool because of this condition code?
COND parameter determines if job steps are to be skipped or executed. JES3 processes all jobs as if each step will ultimately be executed, and therefore allocates devices for steps that may be eventually be skipped because of the COND parameter tests, so the devices must still be available when the job is submitted - but in this case too it does not do what you think it does.
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post