The hierarchy of the execution of logical operators is
(a) NOT AND OR
(b) AND OR NOT
(c) OR AND NOT
(d) OR NOT AND

Answer Posted / srinivas.dappili

Hi Santhi,

This is good Question.

THE ANS: IS NOT AND OR.

I am listing precedence order and also the link where u can
Found the relevant details


The operators and their precedence order from highest to
lowest are:
• Navigation operator ( . )
• Arithmetic operators in precedence order:
o + - unary
o * / multiply, divide
o + - add, subtract
• Comparison operators: =, >, <, >=, <=, <>(not equal)
• Logical operator NOT
• Logical operator AND
• Logical operator OR

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/cque_express.html

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

634


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6805


How do you differentiate between cobol and cobol-ii?

651


Explain how to differentiate call by context by comparing it to other calls?

683


what are decleratives in cobol?

1827






I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1798


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

695


How do you reference the fixed block file formats from cobol programs

699


how do you reference the ksds vsam file formats from cobol programs

660


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

624


Differentiate between structured cobol programming and object-oriented cobol programming.

663


how do you reference the printer file formats from cobol programs

652


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

851


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520


Which mode is used to operate the sequential file?

658