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 to convert the recors form vsam file to db2 table tru file aid
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is perform what is varying?
What are the different rules of SORT operation?
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?
) how do u code after getting data?
For rewrite, why is it mandatory that file needs to be opened?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Explain how you can characterize tables in cobol?
In which area will you utilize 88 level items in cobol?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.