× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



hello,
I'm having some problem with store procedure and hope someone can help
me with it. Here I go:

I have an export procedure, cryptoShadowEncrypt_SP, in a service program
that accepts six parameters. The first two are input only and the last
four are output only parameters. I was able to create a SQL
store-procedure over this export procedure. When I call the store
procedure, the first output parameter returns to me with correct and
expected value. However, the last three output parameters are being
returned with values of x'00'. Below is the prototype and the create
procedure statements:

D cryptoShadowEncrypt_SP...
D pr
D piCryptoFieldID...
D const
D like(cryptoReffldFieldID)
D piPlainText const
D like(cryptoReffldPlainText)
D piRtnIndexValue...
like(cryptoReffldIndexValue)
D piRtnSuccessful...
D n options(*nopass :*omit)
D piRtnMsgID options(*nopass :*omit)
D like(cryptoReffldRtnMsgID)
D piRtnMsgText options(*nopass :*omit)
D like(cryptoReffldRtnMsgText)


create procedure
cryptoShadowEncrypt(
in cryptoFieldID char(30),
in plainText char(32624),
out rtnIndexValue dec(13,0),
out rtnIsSucessful char(1),
out rtnMsgID char(7),
out rtnMsgText char(80)
)

language RPGLE

external name 'PALHC/SVCRYPTO(CRYPTOSHADOWENCRYPT_SP)'

program type sub

not deterministic

no sql

parameter style general




Below is the result when I call it from navigator:
call qgpl.cryptoShadowEncrypt('BLPCUM_CUACCT', '123456789' ,0' ,' ' ,'
',' ')

Output Parameter #3 = 6694

Output Parameter #4 =

Output Parameter #5 =

Output Parameter #6 =

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.