Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Cond parameter COND=(4,LT)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Wed Jan 14, 2004 9:22 pm    Post subject: Cond parameter COND=(4,LT)
Reply with quote

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 icon_confused.gif
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Jan 15, 2004 5:15 am    Post subject:
Reply with quote

Hi ANURADHA,

To understand the COND param you have to think backwards, not much of a stretch for me. icon_smile.gif

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.
Back to top
View user's profile Send private message
bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Thu Feb 05, 2004 11:31 pm    Post subject:
Reply with quote

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..
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us