View previous topic :: View next topic
|
Author |
Message |
yasodha_p
New User
Joined: 03 Apr 2008 Posts: 14 Location: Chennai
|
|
|
|
Hi,
My program contains Declare statement of cursor with fetch only option.
The table is empty .
When that cursor is in Opened, program is abending.
My question " Is it possible of getting 100 for open cursor?" |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
Quote: |
When that cursor is in Opened, program is abending. |
Please post the error code and messages from job log.
Quote: |
Is it possible of getting 100 for open cursor?" |
Do you mean SQLCODE +100 at the time of opening cursor? |
|
Back to top |
|
|
yasodha_p
New User
Joined: 03 Apr 2008 Posts: 14 Location: Chennai
|
|
|
|
Hi,
Thank you for the reply.
Yes, +100 only. I resolved my problem. |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
yasodha_p wrote: |
Hi,
Thank you for the reply.
Yes, +100 only. I resolved my problem. |
could you please share the way you have solved the problem? |
|
Back to top |
|
|
Succor
New User
Joined: 20 Feb 2009 Posts: 96 Location: Bangalore :)
|
|
|
|
Yasodha,nice to hear that it got resolved.
Wanted to know if your Cursor was making use of GROUP BY or an ORDER BY clause and how actually you resolved this issue.
Thanks. |
|
Back to top |
|
|
anandinmainframe
Active User
Joined: 31 May 2007 Posts: 171 Location: India
|
|
|
|
Yasodha,
Only after fetching, we will come to know the result whether 0 or 100 or other sqlcodes. |
|
Back to top |
|
|
yasodha_p
New User
Joined: 03 Apr 2008 Posts: 14 Location: Chennai
|
|
|
|
Hi All,
If the table is empty,
Open/Close cursor doesnt predict the data in the table. Just it open or close the cursor.
Fetch cursor only checks the data in the table.
Thus i resolved my problem. |
|
Back to top |
|
|
|