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
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 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 Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm


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