Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message

Active User

Joined: 06 Jan 2004
Posts: 247

 Posted: Wed Jan 14, 2004 9:22 pm    Post subject: Cond parameter COND=(4,LT) HI, I HAD A DOUBT ON COND PARAMETER.I WAS TOTALLY CONFUSED ON THAT. 1.IF I CODE COND=(4,LT) WHETHER IT CHECKS PREVIOUS STEP'S RC LESS THAN 4 OR 4 LESS THAN RC. MY IDEA IS IT WILL CHECK IF 4 IS LESS THAN PREVIOUS STEP'S RC CONDITION IS FALSE.SO IT HAS TO EXECUTE THAT PARTICULAR STEP.PLEASE CLARIFY ME WHICH IS CORRECT. 2.MY ANOTHER DOUBT IS IF IAM CODING COND=(4,LT) IN STEP4 AND STEP2'S RC IS 8 AND STEP3'S RC IS 0 WHETHER STEP4 WILL EXECUTE R NOT.PLEASE JUSTIFY THE REASON.WHAT EXACTLY MY DOUBT IS WHETHER COND PARAMETER CHECKS ONLY JUST ABOVE STEP OR IT WILL CONSIDER ALL ABOVE STEP'S RC'S. 3.ALSO PLEASE EXPLAIN ME ABOUT COND=EVEN AND COND=ONLY. ACCORDING TO ME IF I CODE COND=EVEN THAT PARTICULAR STEP SHOULD BE EXECUTED EVEN ANY OF THE PREVIOUS STEPS GETS ABENDED.PEOPLE HERE ARE SAYING THAT IT WILL CHECK ONLY PREVIOUS STEP NOT ALL THE PREVIOUS STEPS RC'S SO PLEASE ANYONE CLARIFY ALL THIS DOUBTS ASAP.ALSO TELL ME SOMETHING ABOUT COND=EVEN AND HOW THIS COND PARMS DIFFER IN CODING IN JOB STEP AND STEP STATEMENT. SO SOMEONE PLEASE CLARIFY THIS AND I WANT TO GET OUT OF MY CONFUSION ASAP. THANKS AND REGARDS ANURADHA

mmwife

Super Moderator

Joined: 30 May 2003
Posts: 1592

 Posted: Thu Jan 15, 2004 5:15 am    Post subject: Hi ANURADHA, To understand the COND param you have to think backwards, not much of a stretch for me. I find the best way to read a COND stmt is as follows: COND=(4,LT) read it as follows: If 4 is less than any condition code issued so far, DON'T execute this step. If the COND stmt was COND=(8,GE,STEP2), read it as follows: If 8 is greater than or equal to the condition code issued in STEP2, DON'T execute this step. COND EVEN means execute this step EVEN if any previous step abends. COND ONLY means execute this step ONLY if any previous step abends. ONLY/EVEN has nothing to do with RCs only abends. However, they can be combined with RC tests in the same COND stmt. For example: COND=((8,GE,STEP2),EVEN) The difference between Job and Step COND is covered in the manual. Regards, Jack.
bluebird

Active User

Joined: 03 Feb 2004
Posts: 127

 Posted: Thu Feb 05, 2004 11:31 pm    Post subject: or the if condition is mucho more direct and simpler (for single step condition !!) // IF (yourstepname.RC = 0) THEN //stepx exec pgm=whatever //sysout dd sysout=* //sysprint dd sysout=* // endif in this case stepx will execute noly if yourstepname has returned 0 easy for single step... but several steps included in nested ifs can cause confusion..
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics SMF Specify in the INCLUDE parameter ... Antonio A Negrelli DFSORT/ICETOOL 7 Sat Apr 25, 2020 5:32 am New Parameter should be added to the ... spizen556 CLIST & REXX 30 Fri Apr 03, 2020 5:37 pm Can we pass the value of Symbolic par... Poha Eater JCL & VSAM 5 Thu Sep 05, 2019 2:21 pm Increase the Maximum Length of LRECL ... Dhineshpondy7 JCL & VSAM 5 Wed Aug 07, 2019 6:23 pm File data to symbolic parameter madprasy JCL & VSAM 5 Wed Mar 13, 2019 11:14 am

 © 2003-2020 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us