- Charles Winters
- PowerBuilder
- Thursday, 12 December 2019 10:21 PM UTC
I need to call a oracle procedure from a package, but one of the parameters is a defined type in Oracle.
Is this possible in PowerBuilder? If so, can you point me to the proper syntax?
I have already created a transaction, and used the RPCFUNC declaration.
For example, I just noticed that this procedure below uses a created oracle type called contact_tabtype:
PROCEDURE copy_mystuff(p_source_org_id NUMBER,
p_destination_org_id NUMBER,
p_contacts contact_tabtype,
p_effective_date DATE,
p_underwriter VARCHAR2,
p_financialadvisor VARCHAR2,
p_notes VARCHAR2,
p_mat_message OUT VARCHAR2,
p_return_value OUT NUMBER);
In Oracle this is defined as:
TYPE contact_rectype IS RECORD
(CTC_ID NUMBER(8),
CTC_ORG_ID NUMBER(8),
CTC_STATUS VARCHAR2(1),
CTC_FIRST_NAME VARCHAR2(40)
);
TYPE contact_tabtype IS TABLE OF contact_rectype INDEX BY BINARY_INTEGER;
Thanks.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.