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
how do you reference the variable block file formats from cobol programs
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How do you reference the following file formats from cobol programs?
Which is not true about evaluate statement
What is the difference between Global and External Variables?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What are various search techniques in cobol? Explain.
How you can read the file from bottom?
What is the utilization of copybook in cobol?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Define cobol?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
What is the compute verb? How is it used?
Write down the divisions of cobol program?
Why occurs cannot be used in 01 level in COBOL?