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


Please Help Members By Posting Answers For Below Questions

Explain about different table spaces.

642


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1831


What are the cobol coding sheets?

655


How many sections are there in data division in COBOL?

674


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1948






What is the problem of ordered sequential files access?

690


Define static linking and dynamic linking.

655


how to access the file from prodution from changeman tool and to submit a file to production

6663


How do get the result of your program directly on your pc?

1872


What is the difference between Global and External Variables?

654


What is the LINKAGE SECTION used in COBOL?

884


Which Search verb is equivalent to PERFORM…VARYING?

677


what is the use of outrecord?

1765


What is the difference between comp and comp-3 usage?

669


Describe the cobol database components?

672