Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 125
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: 1243
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: 2442
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us