Hello Sagar,
I think I figured it out in the meantime.
Originally, I wanted to loop through the result set coming from proc1.
But I can't create a cursor for a result set.
What I did is: I created a result view with proc1.
In my calling procedure, I declare the cursor something like this:
declare cursor c_cursor for
select * from RESULT_PROC_VIEW WITH PARAMETERS ('placeholder' = ('$$myParameter$$', '''value'''));
This works, the cursor is declared, and I can loop through the result set.
Many thanks for your hint.
Regards, Rolf