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
 

 

Problem with running a sql query from REXX

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

New User


Joined: 15 Apr 2008
Posts: 39
Location: India

PostPosted: Sat Jun 28, 2008 2:56 pm    Post subject: Problem with running a sql query from REXX
Reply with quote

Hi All,

I am facing the below specified problem when i am trying to run a query from the REXX.

CODE:

/* REXX */
call rxsubcom 'add', 'sql', 'rxtasql2'
address sql
"select firstnme, lastname, salary",
"from dsn.emp",
"where salary >1000",
if rc=0 then do
say "Number of rows returned="sqlca.sqlrows
do i = 1 to sqlca.sqlrows
say firstnme.i lastname.i salary.i
end
end

Error:
3 +++ CALL RXSUBCOM 'ADD', 'SQL', 'RXTASQL2'
Error running REXSQL1, line 3: Routine not found
***

First time I'm running this.
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: Sat Jun 28, 2008 7:05 pm    Post subject:
Reply with quote

Hello,

It sounds like something is missing in your library definitions.

Talk with your system/db2 support people and make sure the library containing RXSUBCOM is defined to your session.

If you have the proper security perissions you may be able to find the library using ISRDDN and specifying RXSUBCOM as the member to search for.
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 Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am


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