Callable Procedures > Oracle Examples:
  
Oracle Examples:
1. Oracle example of a call from a Stored Procedure:
Add the following to the declaration section of the stored procedure:
v_result integer;
v_return_code varchar2(1);
v_return_msg varchar2(256);
Then add the call to the procedure:
v_result := WsParameterWrite('LAST_INVOICE_ID', '123456', 'The last invoice id loaded');
2. Oracle example of a call from sqlplus:
Note: The line beginning exec ... and end with ; must be one line.
Place the following code in a text file called FileName.sql:
set pages 0 feed off heading off
variable res number;
exec :res:=WsParameterWrite('LAST_INVOICE_ID', '123456', 'The last invoice id loaded');
print :res;
Execute the file from sqlplus (using @FileName). The following out is typical:
1