View previous topic :: View next topic
|
Author |
Message |
yugendran
New User
Joined: 14 Dec 2007 Posts: 51 Location: indore
|
|
|
|
//XXXXXR JOB (X-XXXX-XXXX),COND EX1',
// CLASS=H,MSGCLASS=T,
// TIME=(,),REGION=0K,
// NOTIFY=&SYSUID,USER=&SYSUID,COND=(1,LT)
//*
//*
//DEL1 EXEC CA11RMS,TYPRUN='F'
//*
//*
//DEL2 EXEC CA11RMS,TYPRUN='F',COND=(0,EQ)
//*
//*
//DEL3 EXEC CA11RMS,TYPRUN='F'
//*
In this case DEL1 completes with CC=0 and it should execute the DEL2 and DEL3 since i coded COND=(1,LT) But system skips DEL2 while execution.
I believe the COND coded in JOB statement will override the COND in exec statement. But in this case it works in reverse way
Someone pls clarify this
Thanks.
Yuge |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What does it say in the JCL reference manual. |
|
Back to top |
|
|
yugendran
New User
Joined: 14 Dec 2007 Posts: 51 Location: indore
|
|
|
|
If you code the COND parameter on the JOB statement and on one or more of the job's EXEC statements, and if a return code test on the JOB statement is satisfied, the job terminates. In this case, the system does not process any subsequent EXEC statement COND parameters.
This is what i got regarding precedence..
I need a little clarification on that.. If in a job having 5 steps
JOB COND = False always
Step1
Step2 COND = True
Step3
Step4 COND = False
Step5
Then the job will execute as per the EXEC COND till JOB cond is false. So here EXEC cond takes precedence over JOB COND.
If JOB cond fails at any step then it will not check for further EXEC cond. So the precedence comes only if JOB cond becomes true, at that point of time JOB COND takes precedence and skips all further steps.
Why i m asking this because when i googled the same, It is given like JOB COND takes precedence over EXEC COND. So I thought that if JOB COND is always false then it should execute all the steps irrespective of the EXEC COND. |
|
Back to top |
|
|
cvishu
Active User
Joined: 31 Jul 2007 Posts: 136 Location: india
|
|
|
|
Pls try this and let me know
//DEL2 EXEC CA11RMS,TYPRUN='F',COND=(0,NE) |
|
Back to top |
|
|
yugendran
New User
Joined: 14 Dec 2007 Posts: 51 Location: indore
|
|
|
|
@Vishu...All the steps got executed from DEL1 to DEL3
Actually system will check the JOB COND, if it is false then EXEC COND will be evaluated. |
|
Back to top |
|
|
|