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

Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


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

3 Answers   Hewitt,


for an INITIALIZE and what keyword allows for an override of the default.

2 Answers  


COBOL Snippet: Tell where the control will when the below code execute IF (A=B) CONTINUE ELSE NEXT SENTENCE PERFORM <IMP-STMT> END-IF.

7 Answers   HCL,


What is the maximum size of a 01 level item in COBOL I? in COBOL II?

2 Answers   IBM, RBS,






How to use the same COBOL program in Batch and CICS on lines? explain with an example

0 Answers   IBM,


What are options have been removed in COBOL 11?

1 Answers  


What is difference between comp & comp-4?

6 Answers  


In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?

1 Answers   CSC,


In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?

3 Answers  


wht is structured cobol pgm and non structred cobol pgm ?

1 Answers   CTS, DELL,


Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?

3 Answers  


Categories