You probably couldn't find any references to AND conditions in the manuals because condition code testing doesn't support AND conditions, only OR conditions. In other words, as the manual says, you can check conditions for multiple steps but only for an OR condition. Your original problem statement did NOT mention whether you wanted AND or OR logic.

cvishu,
you make a habit of asking questions about basic concepts
and then when you receive a solution,
you make a stupid remark - which shows that you have made no attempt to understand COND on an EXEC statement.

DAVE, thx for the reminder of NERTS - that is the way I learned.

cvishu,
if you forget about all your silly logic and just remember
if anything is true, skip the step.
That is why i used the NE 4,
which obviously was not noticed.

Robert , i had clearly put in my query tat i want to check an and condition

cvishu wrote:

execute step 6 only if step 2 and step 4 have a
RC of "04", if eitheir one returns 0 then the step should not execute.

dbzTHEdinosauer , i appreciate your efforts in helping out noobs , but a politer way of responding would be great , You may have 10-15 years of experience in mainframes and me just 2+ years , trust me when i have spent the same amount of years as u had i will definitely stop my STUPID remarks and questions.

i don't want to engage in an argument here, but stop being rude , and i sincerely thank the time and effort people put here in responding to queries .

and it is not the questions, it is the response to the solutions.
it is one thing to ask a question about basics,
it is another to say that the provided solution is incorrect
when you obviously don't know jack.

you showed no respect for my effort to provide a solution.
why should I show you any respect.

learn your skills,
and you know where you can stuff this
DON'T BE RUDE
BS.