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.
Answers were Sorted based on User's Feedback
Answer / srivalli janapati
Your code must not be using the CURSOR concept and NOT
handling the abend properly.When atleast CURSOR is not
being used in the code,there should be alteranative code to
handle when query resulted in retrieving multiple rows.
-811: is basically the SELECT query resulted in retrieving
more than a Row
Meaning,the resultant query must be retrieving more than a
row,and tried to push all the resualtant rows at a time for
the processing.COBOL-DB2 program can't handle this
situation as it expects a row at a time and then ABENDS.
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / 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 |
Answer / sangeethas1985
anybody who has an idea about this, please post answer.
| Is This Answer Correct ? | 0 Yes | 1 No |
How can we retrieve the total number of records in RPG & CLLE?
Plan has the optimized access path in it. But is that optimized access path is attained or known
What does this mean ? GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;
How to find schema of a table in db2?
What are column-name qualifiers used?
What is the size of a data page?
What is runstats db2?
I have a table which has thousand of records i want to fetch only record num 100 to record num 200. Write a query that satisfies this criteria.(Cant use any keys) Anyone please reply ASAP!
17 Answers KNIT, Tech Mahindra,
define clustering index.
What is the function of logging in the db2 database?
How to select the duplicate rows from a table?
wht r the requirements for writing a cobol-db2 pgm ?