In Powerbuilder (11.5.1 Build 5097) I have a Local External Function declared as follows:
SUBROUTINE INSERT_TRXNDR(long p_TRXNDR_SEQ, &
long p_ADDR_CITY_SEQ, &
… more parameters
string p_NDR_CASE_REVIEWED) RPCFUNC
I currently call this external function using the following syntax
sqlca.insert_trxndr(ll_TRXNDR_SEQ, &
ll_ADDR_CITY_SEQ, &
… more parameters
ls_NDR_CASE_REVIEWED)
I need to modify this to add more parameters. Currently there are 253 parameters. I need to add another 50 for a total of 303.
The problem that I am encountering is that I am getting the following error when compiling the window function that calls the subroutine after adding all of the parameters.
Error C0084: Bad number of arguments for function: insert_trxndr
I decided to add the parameters one at a time to attempt to identify exactly when it breaks.
When I had added 2 parameters to the declaration, saved it, and then modified the code that invoked it, the window function compiled fine (total of 255 parameters).
SUBROUTINE INSERT_TRXNDR(long p_TRXNDR_SEQ, &
long p_ADDR_CITY_SEQ, &
… more parameters
string p_NDR_CASE_REVIEWED, &
datetime P_TRAVEL_ARRIVED_DT1, &
datetime P_TRAVEL_ARRIVED_DT2) rpcfunc
sqlca.insert_trxndr(ll_TRXNDR_SEQ, &
ll_ADDR_CITY_SEQ, &
… more parameters
ls_NDR_CASE_REVIEWED, &
ldt_TRAVEL_ARRIVED_DT1, &
ldt_TRAVEL_ARRIVED_DT2)
However, when I added the 3rd parameter to the declaration, saved it and then modified the code that invoked it, the window function gave me the error when I compiled it (total of 256 parameters).
SUBROUTINE INSERT_TRXNDR(long p_TRXNDR_SEQ, &
long p_ADDR_CITY_SEQ, &
… more parameters
string p_NDR_CASE_REVIEWED, &
datetime P_TRAVEL_ARRIVED_DT1, &
datetime P_TRAVEL_ARRIVED_DT2, &
datetime p_TRAVEL_ARRIVED_DT3) rpcfunc
sqlca.insert_trxndr(ll_TRXNDR_SEQ, &
ll_ADDR_CITY_SEQ, &
… more parameters
ls_NDR_CASE_REVIEWED, &
ldt_TRAVEL_ARRIVED_DT1, &
ldt_TRAVEL_ARRIVED_DT2, &
ldt_TRAVEL_ARRIVED_DT3)
I have found some references to a limit of 256 parameters on various web sites but they are very, very old.
I even tried changing the parameter names to make them shorter in case that was the issue, but got the same results.
Any insight would be appreciated.
Thank you,
Michelle