Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is it possible of getting 100 for open cursor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
yasodha_p

New User


Joined: 03 Apr 2008
Posts: 14
Location: Chennai

PostPosted: Thu May 07, 2009 2:35 pm    Post subject: Is it possible of getting 100 for open cursor
Reply with quote

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
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Thu May 07, 2009 4:05 pm    Post subject:
Reply with quote

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
View user's profile Send private message
yasodha_p

New User


Joined: 03 Apr 2008
Posts: 14
Location: Chennai

PostPosted: Thu May 07, 2009 4:57 pm    Post subject:
Reply with quote

Hi,
Thank you for the reply.
Yes, +100 only. I resolved my problem.
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 216
Location: India

PostPosted: Thu May 07, 2009 6:53 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Succor

New User


Joined: 20 Feb 2009
Posts: 96
Location: Bangalore :)

PostPosted: Thu May 07, 2009 7:13 pm    Post subject: Reply to: Is it possible of getting 100 for open cursor
Reply with quote

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
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Fri May 08, 2009 12:22 pm    Post subject: Reply to: Is it possible of getting 100 for open cursor
Reply with quote

Yasodha,
Only after fetching, we will come to know the result whether 0 or 100 or other sqlcodes.
Back to top
View user's profile Send private message
yasodha_p

New User


Joined: 03 Apr 2008
Posts: 14
Location: Chennai

PostPosted: Fri May 08, 2009 12:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts Release of Adabas Cursor mohitsethi All Other Mainframe Topics 1 Mon Feb 06, 2017 8:36 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us