umm, I think perhaps you did not actually read what I wrote.
You do not write that block - you 1) read the link 2) do the a,b,c,d steps.
I have no idea what "SSIS" is or does.
I provided you TWO ways to do this -
variable y refcursor
begin :y := mypackage.get_report; end;
/
print y
just put that in a script and run it, you'll get your output in the output window
or if you want the result set in a grid to interact with - use the a,b,c,d approach clearly listed above.
NO WHERE did anyone tell you to code the block you posted.