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 a zoned decimal data type and how it will be stored?

2 Answers   IBM,


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

0 Answers   IBM,


I know my query will return more than one row but I don't want cursor what should I do?

1 Answers  


What is the difference between index and subscript?

5 Answers   Visa,


what is the coding difference between COBOL and CICS.

8 Answers   Cap Gemini,






In INITIALIZE what is Repalcing Word will do

1 Answers   CTS,


What is report-item?

1 Answers   IBM,


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

0 Answers  


I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?

3 Answers   HCL, IBM,


What is sqlca and why is it needed in any cobol-db2 program?

1 Answers  


Have you code any new programs in COBOL ? What is the functionality of the programs?

2 Answers   Patni, Xansa,


I have a seq file with different fields one field is address with pic x(50) as input in a cobol program. In address there is 'PUNE' at any different positions in the address field ( form 1 t0 50) . My requirement is select the fields with address 'PUNE' by using cobol. Please suggest

2 Answers   IBM,


Categories