What are the different forms of EVALUATE statement?

Answers were Sorted based on User's Feedback



What are the different forms of EVALUATE statement?..

Answer / shinoy sansilavose

EVALUATE
WHEN A=B AND C=D
imperative stmt

WHEN (D+X)/Y = 4
imperative stmt
WHEN OTHER
imperative stmt
END-EVALUATE

EVALUATE SQLCODE ALSO FILE-STATUS
WHEN 100 ALSO '00'
imperative stmt
WHEN -305 ALSO '32'
imperative stmt
WHEN OTHER
imperative stmt
END-EVALUATE

EVALUATE SQLCODE ALSO A=B
WHEN 100 ALSO TRUE
imperative stmt

WHEN -305 ALSO FALSE
imperative stmt
END-EVALUATE

EVALUATE SQLCODE ALSO TRUE
WHEN 100 ALSO A=B
imperative stmt
WHEN -305 ALSO (A/C=4)
mperative stmt
END-EVALUATE

Is This Answer Correct ?    15 Yes 0 No

What are the different forms of EVALUATE statement?..

Answer / ch.mohan

two forms
1)true
2)option

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

what is internal sort and external sort ? which is preferable ?

2 Answers   TCS,


what is the difference between Plan & package

3 Answers   IBM,


in cobol perform stmt whether it first checks the condition or not

9 Answers  


What are the different types of condition in cobol and write their forms.

0 Answers  


Name the sections present in data division.

0 Answers  






db2 variable decimal(15,2) what is the equalent size of cobol variable

2 Answers   Syntel,


plz,could any one tell me? what about EBCDIC in cobol?briefly?

1 Answers  


What COBOL construct is the COBOL II EVALUATE meant to replace?

1 Answers  


How do you submit JCL via a Cobol program?

5 Answers   IBM,


What are the pertinent COBOL commands?

0 Answers   Satyam,


Following questions were asked in Capegemini on 8th sep,2012 mainframe test 1.)Condition code for dul recors in VSAM- 2.) Is NULL or =NULL in Select statement 3.)max size of CI 4.)What happens after CI is full 5.)Ques on COND parameter 6.)which among following can not be rolled back a)delete table b.)droptable c)Update d.)insert 7.)groupby and orderby sql querries 8.)Max extents in VSAM file 9.)quesn on DPRTY=(1,10) 10.)range of condition codes in COBOL 11.)occurs clase can not be used at which level? 12.)delimiter in jcl 13.)sort card for file in PGM=SORT 14.)PIC(6) value 120056 possible? 15)question on BLKSIZE Is (20,20) and (20,10) possible? 16.)number of bytes in RDF 17.)Can we use index in WS-section or LK-section 18.)Verify command in IDCAMS used for? 19.)question on Alternate Index 20.)Return code of file attribute mismatch 21.)In which format COBOL variables stored? 22.)what is Alternate of HANDLE? 23.)can SUM,AVG,MIN,ROUND used in numeric and char variable data types? 24.)What is the datatype of FILE STATUS codes in WS-section?

2 Answers   Cap Gemini,


i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?

6 Answers  


Categories