In an EVALUTE statement is the order of the WHEN clauses
significant?
Answers were Sorted based on User's Feedback
Answer / mahathiaz
Absolutely. Evaluation of the WHEN clauses proceeds from
top to bottom and their sequence can determine results
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / sravanthi
If 10 conditions coaded in 10 different when clause in an evaluate
If one when conditions is satisfied then it will not check the next conditions it will directly come out of evaluate loop
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / keshireddy
Maha is correct.. In addition as it is top to bottom, more
number of times satisfied condition keep first.. this is
just for performance.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / jay
Yes
With Evaluate statment with When condition are evaluated from top to bottom.
| Is This Answer Correct ? | 0 Yes | 0 No |
Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.
how to transfer the file from pc to mainframe??
I had 100 records and i want to execute last three records by using cobol programming?what will be coding?
what are the limitations of Inline Perform?
What is the difference between comp and comp-3?
Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?
What is sqlca and why is it needed in any cobol-db2 program?
Can anyone tell me how to handle the array beyond the limit. If we have an array or a table which can handle 5000 records but now we have to compensate 20000 records with the same array? how to handle the situation.
I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...
What is the difference between perform … with test after and perform … with test before?
What is the LINKAGE SECTION used for?
What type of Call you would use if you don;t want the control back to the calling program?