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
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
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?
What is a report item?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How do you reference the following file formats from cobol programs?
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?
Which division and paragraphs are mandatory for a COBOL program?
how do you define single dimensional array and multidimensional array in your cobol?
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.
What is the problem of ordered sequential files access?
When is inspect verb is used in cobol?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Write a program that uses move corresponding.