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 Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 2 Wed Jul 26, 2017 5:19 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


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