165 pts.
 Logical Relationship in Input Specs in RPG
Hi, We can use operators AND/OR (in position 16:18) to specify logical relationship for Record Identification codes of an input record. I understood in what cases we use AND operator, but I couldn't understand in what cases one can use OR operator. I would be highly thankful if someone can help me in understanding this with a practical example. Thanks in advance. Regards Shruti.

Software/Hardware used:
ASKED: May 3, 2009  11:59 AM
UPDATED: May 6, 2009  7:06 AM

Answer Wiki:
Hello, Think as the 'OR' the same as either. If either the first <b>or </b>second statement is true than process. One statement can be false but as long as the other statement is true. They both can be true but if both statements are false, then the else is processed. Did this make sense?
Last Wiki Answer Submitted:  May 4, 2009  6:57 pm  by  RonBender   155 pts.
All Answer Wiki Contributors:  RonBender   155 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Record Identification codes?
Oldtech eh?

lets say you have a file where byte 1 is the type of … account

1= sales
2 = purchase
3 = nominal

and you want a list of all sales or purchase accounts

ID = 01 when byte 1=1
OR byte 1=2

calcs..

if 01 then print
else
ignore

 5,505 pts.