I have a PL/SQL procedure that has a single IN/OUT value and multiple OUT values.
The Procedure works fine and I am able to read all the OUT values.
What I now wish to do is to call the Procedure from within another Procedure but only access one of the returned OUT values.
for example:
PROCEDURE MyProc
(
--INPUT/OUTPUT PARAMETERS
io_myVar IN OUT NUMBER,
o_TestNum1 OUT NUMBER,
o_TestNum2 OUT NUMBER,
o_Test1 OUT VARCHAR2
);
Now I want to call this procedure as follows:
MyProc(v_Input, , , v_TestOutput);
This is obviously simplified but some of the values returned are in fact custom types and custom table/record types so scold be quite large.
I don't want to have to create variables just to store all this data that I don't need to process at this time - I am only interested in one of the returned values.
How do I call the Procedure and only get the one value I am interested in?