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 Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm


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