dbTalk Databases Forums  

Using Rexx to read result set from Admin_Cmd Stored Procedure

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Using Rexx to read result set from Admin_Cmd Stored Procedure in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fin
 
Posts: n/a

Default Using Rexx to read result set from Admin_Cmd Stored Procedure - 07-18-2011 , 09:13 AM






Hi folks,

I am using Classic Rexx 4.1 calling the SYSPROC.ADMIN_CMD command to LOAD data into table. The command appears to be working fine, but I need to be able to read the output from the SP to get the number of rows read, skipped, loaded, rejected, deleted, committed etc which is the output returned by the SP.

I have tried all manner of ways trying to retrieve the data but it simply will not work for whatever reason. Can some kind soul please advise how I get classic oorexx 4.1.0 to read a dynamic result set from DB2 Express-C 9.7.4 the SYSPROC.ADMIN_CMD stored procedure ?

I am calling the SP via :

call SQLEXEC 'EXECUTE IMMEDIATE :v.sql'

Many thanks, Fin

Reply With Quote
  #2  
Old   
Fin
 
Posts: n/a

Default Re: Using Rexx to read result set from Admin_Cmd Stored Procedure - 07-18-2011 , 10:49 PM






Nobody ? Anybody ? .. I'm begging here .. heh Desperate !

Reply With Quote
  #3  
Old   
Helmut Tessarek
 
Posts: n/a

Default Re: Using Rexx to read result set from Admin_Cmd Stored Procedure - 07-19-2011 , 03:02 AM



On 18.07.11 23:49 , Fin wrote:
Quote:
Nobody ? Anybody ? .. I'm begging here .. heh Desperate !
Sorry, haven't used Rexx for more than 10 years...

I really loved that language (walking down memory lane). If I had a problem
with Rexx, I'd contact the developers/designers of Rexx.
They wrote the binding of values, so they should know for sure.

(I am one of the original developers of the native DB2 driver for PHP, so
shoot away, if you have any questions there... :-))

--
Helmut K. C. Tessarek
DB2 Performance and Development
IBM Toronto Lab

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.