Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8533

Re: Not able to get Oracle stored procedure return value passed to Powerbuilder

$
0
0

Hello John,

 

I'm not sure if you already found a solution using an ODBC connection.

 

Below the solution with an RPC call:

 

  • Create a user object (uo_trans) of type transaction with the following local external function:

subroutine TESTINOUT_VARCHAR(string P_STRING,ref string P_OUT) RPCFUNC

 

  • Execute this script

 

uo_trans l_transaction

string ls_outparam

 

 

l_transaction = CREATE uo_trans

 

 

// Profile ODBC_ORA

l_transaction.DBMS = "ODBC"

l_transaction.AutoCommit = False

l_transaction.DBParm = "ConnectString='DSN=ODBC_ORA;UID=system;PWD=<xxxxxx>'"

 

 

connect using l_transaction;

 

 

 

 

ls_outparam = space (30)

l_transaction.testinout_varchar( sle_1.text, ls_outparam)

messagebox("OUT parameter", ls_outparam)

 

 

disconnect using l_transaction;

 

 

DESTROY l_transaction


Viewing all articles
Browse latest Browse all 8533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>