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 required to bind a rexx program if it has sql ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 122
Location: India

PostPosted: Mon Mar 08, 2010 11:06 am    Post subject: Is it required to bind a rexx program if it has sql ?
Reply with quote

My rexx program using sql cursor.

It is giving error -514( THE CURSOR IS NOT IN A PREPARED STATE ).

Please help.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 08, 2010 11:17 am    Post subject:
Reply with quote

Hello,

The forum search can be your friend icon_smile.gif

See if this previous topic has info that will help:
http://ibmmainframes.com/viewtopic.php?t=44443&highlight=rexx+sql
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1232
Location: Israel

PostPosted: Mon Mar 08, 2010 11:21 am    Post subject:
Reply with quote

Check SQLCODE after each statement (DECLARE and PREPARE too)

Check a sample here

edit: oops, same link as posted by d.sch.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Mar 08, 2010 11:23 am    Post subject:
Reply with quote

You don't need to bind each REXX EXEC accessing DB2, but you do need to bind the REXX language support modules when you install DB2, as described in the fine manual.

O.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2435
Location: Netherlands, Amstelveen

PostPosted: Mon Mar 08, 2010 5:19 pm    Post subject:
Reply with quote

ofer71 wrote:
You don't need to bind each REXX EXEC accessing DB2, but you do need to bind the REXX language support modules when you install DB2, as described in the fine manual.

O.


Tzohora'im Tovim Ofer,

indeed thats a fine manual.

Kol Tov.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Mar 08, 2010 5:53 pm    Post subject:
Reply with quote

2014.gif
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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