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 are the different rules to perform a Search?
What are the pertinent COBOL
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Can we change the password using ALTER? anyone tried and changed?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
how do you reference the ksds vsam file formats from cobol programs
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How do you differentiate between cobol and cobol-ii?
What is inspect in cobol ?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Write a cobol program making use of the redefine clause.
Whats the difference between search & search ALL?
What is the difference between external and global variables in COBOL?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
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.