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 the compute verb? How is it used?

0 Answers  


how we rectify soc7 and soc4 errors in project?

1 Answers   Anaxis, TCS,


I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?

1 Answers  


How can you add a particular field in copybook?

2 Answers   L&T,


What is EIBCALEN? Why it is used?

9 Answers   ADP,






WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?

3 Answers   TCS,


What is an in line perform? When would you use it? Anything else you wish to say about it.

0 Answers  


What is Alternate Index ? How is it different from regular index ?

2 Answers  


What is Pic 9v99 Indicates in COBOL?

0 Answers   SwanSoft Technologies,


If a sub program is called from mainprogram.I have opened cursor in main program and Fetch the result in subprogram ,Is it possible ?If yes please tell me the reason.

1 Answers  


Can a Search can be done on a table with or without Index?

0 Answers  


Are you comfortable in cobol or jcl?

0 Answers  


Categories