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
 
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 attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am
No new posts Can we create REXX ouput in an Excel ... upendrasri CLIST & REXX 3 Wed Jan 17, 2018 8:19 pm
No new posts Need to obtain VTOC information via R... djeffbland CLIST & REXX 10 Thu Jan 11, 2018 4:13 am
No new posts reg query on DYNALLOC feature raghuraman123 SYNCSORT 12 Wed Jan 10, 2018 2:42 pm
No new posts REXX contest sergeyken CLIST & REXX 2 Tue Jan 09, 2018 1:55 am

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