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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

429


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

689


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

1178


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1236


What is a report item?

745






What is the default value(s) for an initialize? What keyword will allow for an override of the default?

665


How do you reference the following file formats from cobol programs?

702


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1812


Which division and paragraphs are mandatory for a COBOL program?

712


how do you define single dimensional array and multidimensional array in your cobol?

685


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5698


What is the problem of ordered sequential files access?

706


When is inspect verb is used in cobol?

681


What is the Purpose of POINTER Phrase in STRING command in COBOL?

725


Write a program that uses move corresponding.

681