Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Result for IF condition with an OR code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Result for IF condition with an OR code
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 3 Mon May 29, 2017 8:10 pm
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us