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


Please Help Members By Posting Answers For Below Questions

What are all the divisions of a COBOL program?

665


) what is the difference between AID and HANDLE AID?

1637


) how do u code after getting data?

1580


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


explain sorting techniques in cobol program?

690






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?

1806


How do we get current date from system with century in COBOL?

805


What is amode(24)?

684


Can a Search can be done on a table with or without Index?

802


Write a cobol program making use of the redefine clause.

732


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.

5064


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1914


What is the use of intialize verb?

750


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

914


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661