I need to fetch values from a procedure. The procedures name is Finn and its located in a package called Seter. Its no problem getting the OUT values in Finn like:
declare
l_rad NUMBER;
l_sete NUMBER;
begin
l_rad:='&&s_rad';
l_sete:='&&s_sete';
if l_sete is null then
Seter.Finn('&&s_film','&&s_sted', '&&s_kino',l_rad, l_sete);
end if;
if l_sete > 0 then
DBMS_OUTPUT.PUT_LINE('---------------------------------------------');
DBMS_OUTPUT.PUT_LINE('Bekrefter valg - Sete: '||l_sete||' Rad: '||l_rad);
end if;
end;
/
But I need to put l_sete and l_row back into &&s_sete and &&s_row after executing Seter.Finn. How do I do that? Thanks in advance.
declare
l_rad NUMBER;
l_sete NUMBER;
begin
l_rad:='&&s_rad';
l_sete:='&&s_sete';
if l_sete is null then
Seter.Finn('&&s_film','&&s_sted', '&&s_kino',l_rad, l_sete);
end if;
if l_sete > 0 then
DBMS_OUTPUT.PUT_LINE('---------------------------------------------');
DBMS_OUTPUT.PUT_LINE('Bekrefter valg - Sete: '||l_sete||' Rad: '||l_rad);
end if;
end;
/
But I need to put l_sete and l_row back into &&s_sete and &&s_row after executing Seter.Finn. How do I do that? Thanks in advance.