Cobol Question:
Download Questions PDF

What are the different forms of EVALUATE statement?

Cobol Interview Question
Cobol Interview Question

Answer:

EVALUATE SQLCODE ALSO FILE-STATUS

WHEN A=B AND C=D WHEN 100 ALSO ‘00'

imperative stmt imperative stmt

WHEN (D+X)/Y = 4 WHEN -305 ALSO ‘32'

imperative stmt imperative stmt

WHEN OTHER WHEN OTHER

imperative stmt imperative stmt

END-EVALUATE END-EVALUATE

EVALUATE SQLCODE ALSO A=B EVALUATE SQLCODE ALSO TRUE

WHEN 100 ALSO TRUE WHEN 100 ALSO A=B

imperative stmt imperative stmt

WHEN -305 ALSO FALSE WHEN -305 ALSO (A/C=4)

imperative stmt imperative stmt

Download Cobol Interview Questions And Answers PDF

Previous QuestionNext Question
Is it possible that the REDEFINES clause has different picture clauses compared to the one it redefined?Why do we code s9 (4) comp In spite of knowing comp-3 will occupy less space?