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 |
where will u code file status ?
How to define a array dynamically.....
what is index and how to use two tables using index?
if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?
What is the difference between next sentence and continue in cobol programing language?
have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code
how can u pass the values into db2 values from cobol ?
I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?
What is the problem of ordered sequential files access?
I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."
can we redefine 77 level item is it possible
How to use the same COBOL program in Batch and CICS on lines? explain with an example