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

Why there is no questions in this column?

6 Answers  


How do you define a variable of COMP-1? COMP-2?

3 Answers  


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

0 Answers  


i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?

7 Answers   CTS,


How do get the result of your program directly on your pc?

0 Answers   UST,






is it possible to declare index in cobol program? if it is not why its tell me pls

3 Answers  


In which area will you utilize 88 level items in cobol?

0 Answers  


hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.

2 Answers  


File status must be checked both while opening and reading the file or only while reading the file?

2 Answers  


how to pass 100 to s9(4) how r they inserted ?

3 Answers   TCS,


In COBOL, what is the different between index and subscript?

0 Answers   TryTechnicals Pvt Ltd,


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,


Categories