yes, that worked, thanks.
so in Sql * Plus I use "VARIABLE"
but in Pl * Sql it's
declare
vRtnCd varchar2(1);
begin
EXECUTE edw_util_api.recordApprova
end:
?
Main Topics
Browse All TopicsI have a procedure that I run like this from within a Pl Sql unit:
edw_util_api.recordApprova
but I just can't quite get the syntax to run this from a sql plus session, due to the out-return code.
I tried several ways, like this
declare
vRtnCd varchar2(1);
begin
exec edw_util_api.recordApprova
end;
Normally I run a proc like this in Pl Sql Developer using the test window, and it's all set up and in a slightly different format.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: billprewPosted on 2009-10-14 at 12:40:56ID: 25574281
Try this, not sure if I'm remebering the exact syntax.
ls('PRV',' 130',to_ch ar(sysdate ,'yyyy'), 'SYSTEM','Approved per SOP','CDR',:vRtnCd);
VARIABLE vRtnCd VARCHAR2(1)
EXECUTE edw_util_api.recordApprova
~bp