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: 1228
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: 2433
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am


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