What R 2 of the common forms of the EVALUATE STATEMENT ?



What R 2 of the common forms of the EVALUATE STATEMENT ?..

Answer / scott

You can evaluate TRUE or FALSE conditions or you can
interigate the value of a field

1)
EVALUATE TRUE
WHEN A = 1
PERFORM SOMETHING
WHEN A = 2
PERFORM SOMETHING ELSE
END-EVALUATE

2)
EVALUATE A
WHEN 1
PERFORM SOMETHING
WHEN 2
PERFORM SOMETHING ELSE
END-EVALUATE

Is This Answer Correct ?    15 Yes 2 No

Post New Answer

More COBOL Interview Questions

What is static and dynamic call in cobol?

0 Answers  


01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999v99 05 y pic 99v99 05 z pic x(3) value 'abc' if rec1 is moved to rec2 then what is the value of rec2?

5 Answers   Amdocs,


What are the various section in data division and briefly explain them.

0 Answers  


what is the minimum number of lines a Cobol program should have to successfully compile and run

7 Answers  


Can we use redefine clause in occurs clause?

10 Answers  






how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?

4 Answers   TCS,


Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad

35 Answers  


PERFORM ACCUMULATE-TOTALS VARYING A FROM 1 BY 2 UNTIL A >2 AFTER B FROM1 BY 1 UNTIL B>2 AFTER C FROM 2 BY -1 UNTIL C<2 How many times the paragraph ACCUMULATE-TOTALS would be exicuted?

5 Answers   TCS,


I have a occurs for 100 times but it has executed 101 time what could be the reason?

4 Answers  


Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?

1 Answers  


What is the difference between perform … with test after and perform … with test before?

0 Answers  


What is the difference between performing a SECTION and a PARAGRAPH?

5 Answers   Accenture, Patni,


Categories