What R 2 of the common forms of the EVALUATE STATEMENT ?
Answer / 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 |
What is the compute verb? How is it used?
how we rectify soc7 and soc4 errors in project?
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?
How can you add a particular field in copybook?
What is EIBCALEN? Why it is used?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is Alternate Index ? How is it different from regular index ?
What is Pic 9v99 Indicates in COBOL?
0 Answers SwanSoft Technologies,
If a sub program is called from mainprogram.I have opened cursor in main program and Fetch the result in subprogram ,Is it possible ?If yes please tell me the reason.
Can a Search can be done on a table with or without Index?
Are you comfortable in cobol or jcl?