This was related to -811 sqlcode, In a COBOL DB2 program
which accesses employee table and selects rows for employee
'A', it should perform a paragraph s001-x if employee 'A'
is present. In this case it gets -811 sqlcode, but still it
process the paragraph s001-x. What could be wrong in my
code.

Answer Posted / karamveer

-811 will come because you have the multiple record fetched by your query. But still your para is stored because first record from your query resultset is fetched and processed. -811 is error but it will not abend your program and it runs fine. You need to build query which result unique record.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlca?

608


How to check last update on table in db2?

624


What is phantom read in db2?

636


What is the difference between bind and rebind in db2?

846


What is ibm db2 connect?

568






Explain in brief how does db2 determine what lock-size to use?

589


What is db2?

736


How can we retrieve the total number of records in RPG & CLLE?

188


How can you do the explain of a dynamic sql statement?

629


What is scrollable cursor in db2?

577


What do you mean by cursor?

580


What is multi row fetch in db2?

597


What is the maximum length of sqlca?

857


How many databases are there?

588


What is null indicator in cobol db2?

576