What are the different forms of EVALUATE statement?

Answers were Sorted based on User's Feedback



What are the different forms of EVALUATE statement?..

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

What are the different forms of EVALUATE statement?..

Answer / ch.mohan

two forms
1)true
2)option

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

What are the pertinent COBOL

0 Answers   IBM,


How may divisions are there in JCL-COBOL?

5 Answers   IBM,


How many bytes do a s9 (7) comp-3 field occupy?

1 Answers  


if you give cylinder(1,1)how many cylinders it will be allocate?

3 Answers   Hewitt,


How can you add a particular field/coloumn in copybook?

3 Answers   ADP, DELL, L&T,






What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

2 Answers  


what is the use of outrecord?

0 Answers  


how can we code index in an array of cobol pgm?

1 Answers   Wipro,


what is the diff b/w select stsmt and cursor ?

2 Answers  


I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?

6 Answers   IBM,


WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR LRECL OF FIXED ONE AS 80 AND 2ND RECORD AS 132. WHAT WE NEED TO DECLEAR LRECL FOR THOSE 2 FILES IN JCL?

4 Answers   iGate,


how you will define variables length in cobol.

3 Answers   Temenos,


Categories