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
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What are the cobol coding sheets?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Can we change the password using ALTER? anyone tried and changed?
What is the difference between goback, stop run and exit program in cobol?
What are the pertinent COBOL commands?
What is the compute verb? How is it used?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
In COBOL, what is the different between index and subscript?
how to convert the recors form vsam file to db2 table tru file aid
What are the different open modes available in cobol?
What kind of error is trapped by on size error option?
Write a program to enter and display the names of students in a class using the occurs clause.