What is the use of EVALUATE statement?
Answers were Sorted based on User's Feedback
Answer / ravikumar
Evaluate statement is used to avoid nested if statments in
the program.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / hariharan mahadeek
Evaluate Statement used for case structure - When working
multiple options this statement will be handy. Instead of
using multiple IF statement.
Hariharan Mahadeek -
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / edukulla
By useing of evaluate state ,we can reduce the syntax error
and reduce programing lenth,naturally error can redued
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / suresh babu
You can use the EVALUATE statement instead of a series of
nested IF statements to test several conditions and specify
a different action for each. Thus we can use the EVALUATE
statement to implement a case structure or decision table.
We can also use the it to cause multiple conditions to lead
to the same processing.
| Is This Answer Correct ? | 2 Yes | 0 No |
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?
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
What do you do to resolve SOC-7 error?
COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error
How to increase the logical record length of existing PS file?
What guidelines should be followed to write a structured Cobol program?
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?
i want to learn mainframes. i completed MCA ,whats the future of mainframes
I want ALL ERROR codes in VSAM
3 Answers American Express, TCS,
WT R TECHNICAL MAINFRAME QUESTION ASKED IIN ANJANASOFTEARE??
what is internal sort and external sort ? which is preferable ?
Define cobol?