View previous topic :: View next topic
|
Author |
Message |
ksathishkumar83
New User
Joined: 21 Nov 2006 Posts: 50 Location: India
|
|
|
|
i have a JCl
//step 10
//step 20
//step 30
//step 40
// step 50
In step 50 i need to check the Return code of Step 10 and 20.how can it be done? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi there,
What do u want to do after checking return code of STEP10 & STEP20 ?
If u want to execute step50 depending on returncode of 10 & 20 then below might be helpful.
Code: |
COND=(m,operator,stepname) |
m return code to be used in comparison
0 step ran successfully
4 warning
8 an error exists (probable ABEND)
12 a serious error
16 a severe error
operator type of comparison to make
GT greater than
GE greater than or equal to
LT less than
LE less than or equal to
EQ equal to
NE not equal to
stepname name of the step whose return code is to
be used in the comparison (if stepname is not
used, the comparison is made to all preceding
return codes from all the preceding steps). |
|
Back to top |
|
|
prav_06 Warnings : 1 Active User
Joined: 13 Dec 2005 Posts: 154 Location: The Netherlands
|
|
|
|
Hi Satish,
Instead of playing with the COND parameter u can also use the foll. coding
Before step50 code
Code: |
//Check1 IF STEP10.RC [EQ/LT/NE/GT/GE] <Cond-code> Then
//Chech2 IF STEP20.RC [EQ/LT/NE/GT/GE] <Cond-code> Then
//Step50 EXEC
//dd
//dd
//dd
//Check1 endif
//Check2 endif |
Cheer's,
Thamilzan. |
|
Back to top |
|
|
|