IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Result for IF condition with an OR code


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sbkpune

New User


Joined: 05 Jul 2006
Posts: 1

PostPosted: Wed Jul 12, 2006 9:53 pm
Reply with quote

Hi,

Please, can someone tell me whether the following code (without using parentheses)
IF ws-code = LT-7 OR LT-8 OR LT-9
AND fl-free-yes
AND fl-closed-no
will give the correct results?

Thanks,
Bindu.
Back to top
View user's profile Send private message
calspach

New User


Joined: 05 May 2006
Posts: 32
Location: USA

PostPosted: Wed Jul 12, 2006 10:50 pm
Reply with quote

IF ws-code = LT-7 OR LT-8 OR LT-9
AND fl-free-yes
AND fl-closed-no


It could, depending on what you expect to happen. I suspect what you want to happen is this though:

IF (ws-code = LT-7 OR LT-8 OR LT-9)
AND fl-free-yes
AND fl-closed-no
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts first column truncated in search result IBM Tools 13
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top