Quantcast
Channel: Issues with ANDs and ORs (COBOL) - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by Sean Elgin for Issues with ANDs and ORs (COBOL)

As a rule, I avoid the use of AND if at all possible. Nested IF's work just as well, are easier to read, and with judicious use of 88-levels, do not have to go very deep. This seems so much easier to...

View Article



Answer by Bill Woodger for Issues with ANDs and ORs (COBOL)

The first thing to note is that the code shown is the code which was working, and the amended code which did not give the desired result was never shown. As an addendum, why, if only one person were...

View Article

Answer by Joel Spolsky for Issues with ANDs and ORs (COBOL)

Try adding some parentheses to group things logically:IF (DL-CLASS-STANDING = 'First Yr' OR 'Second Yr') AND(GRAD-STAT-IN = '' OR 'X')

View Article

Answer by paxdiablo for Issues with ANDs and ORs (COBOL)

You may want to look into fully expanding that abbreviated expression since the expansion may not be what you think when there's a lot of clauses - it's often far better to be explicit.However, what I...

View Article

Issues with ANDs and ORs (COBOL)

I can't seem to get this one part right. I was given a input file with a bunch of names, some of which I need to skip, with extra information on each one. I was trying use ANDs and ORs to skip over the...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images