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 about different table spaces.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What are the cobol coding sheets?
How many sections are there in data division in COBOL?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the problem of ordered sequential files access?
Define static linking and dynamic linking.
how to access the file from prodution from changeman tool and to submit a file to production
How do get the result of your program directly on your pc?
What is the difference between Global and External Variables?
What is the LINKAGE SECTION used in COBOL?
Which Search verb is equivalent to PERFORM…VARYING?
what is the use of outrecord?
What is the difference between comp and comp-3 usage?
Describe the cobol database components?