What are the different forms of EVALUATE statement?
Answer Posted / 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 |
Post New Answer View All Answers
what is the use of outrecord?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the use of intialize verb?
What is link edit in cobol?
What kind of error is trapped by on size error option?
) How do u handle errors in BMS macro
Which division and paragraphs are mandatory for a COBOL program?
What is the utilization of copybook in cobol?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
In COBOL programming, what is PERFORM? What is VARYING?
) how do u code after getting data?
What are different data types in cobol?
How do define dynamic array in cobol.
Write down the divisions of cobol program?