I have searched SCN and I found these links on the subject (there are many more links which seem to be broken since the migration):
Calling Procedure in SQL Script
Procedure Script which takes a scalar input and table output
None of these threads deal with my case where I have a procedure (myProcedure):
- with only an output parameter (outtab) and
- the procedure is not 'WITH RESULT VIEW'.
In order to consume the procedure I use:
call "mySchema"."myPackage.Folder::myProcedure"(var_out);
which produces the following error (which makes complete sense to me):
"CALL for non read only procedure/function is not supported in the READ ONLY procedure/function"
Is there a work around to use a non-read only procedure in a scripted CV???