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
What are all the divisions of a COBOL program?
) what is the difference between AID and HANDLE AID?
) how do u code after getting data?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
explain sorting techniques in 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?
How do we get current date from system with century in COBOL?
What is amode(24)?
Can a Search can be done on a table with or without Index?
Write a cobol program making use of the redefine clause.
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.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is the use of intialize verb?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the default value(s) for an initialize? What keyword will allow for an override of the default?