What are the different forms of EVALUATE statement?
Answer Posted / shinoy sansilavose
EVALUATE
WHEN A=B AND C=D
imperative stmt
WHEN (D+X)/Y = 4
imperative stmt
WHEN OTHER
imperative stmt
END-EVALUATE
EVALUATE SQLCODE ALSO FILE-STATUS
WHEN 100 ALSO '00'
imperative stmt
WHEN -305 ALSO '32'
imperative stmt
WHEN OTHER
imperative stmt
END-EVALUATE
EVALUATE SQLCODE ALSO A=B
WHEN 100 ALSO TRUE
imperative stmt
WHEN -305 ALSO FALSE
imperative stmt
END-EVALUATE
EVALUATE SQLCODE ALSO TRUE
WHEN 100 ALSO A=B
imperative stmt
WHEN -305 ALSO (A/C=4)
mperative stmt
END-EVALUATE
Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
Explain how you can characterize tables in cobol?
What is perform what is varying?
what is the difference between COBOL2 AND COBOL390?
Explain how to differentiate call by context by comparing it to other calls?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How many sections are there in data division in COBOL?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
How do u write test cases?
how do you reference the ksds vsam file formats from cobol programs
What are declaratives and what are their uses in cobol?
Discuss about changing dataset name in proc.
how do you reference the esds vsam file formats from cobol programs
What is the difference between Global and External Variables?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly