What are the different forms of EVALUATE statement?
Answers were Sorted based on User's Feedback
Answer / 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 |
How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?
how do you reference the ksds vsam file formats from cobol programs
What is Redefines clause?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value
What are the divisions in a cobol program? Which one is the mandatory division among them?
diffrence between z(2) and z9(2)
If I want to increase the Limit in GDG. What should I do?
give the examples of strings in cobol
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
Give some advantages of REDEFINES clause?
With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?