Hi
I need ur help in solving my problem, I can't mention my code as it is too lenghey, so I am giving with some example.
Here is my sourses, my requirement and what I have done.

Sourse: The procedure and the package are available in XX schema
1. Package PK1 in which ref cursor RC1 is declared.
2. Procedure PR1 which takes some arguments includes an out parameter of type RC1 and in turn it will call some other procedures and finally it opens a cursor of type RC1 with some sql statement.

Requirement: I need to write a block which will call the proc PR1
and then fetch data using the cursor.

what I have done : I wrote a procedure in which I declared some variables and a cursor like
v_cur XX.PK1.RC1
and I called the proc PR1 like XX.PR1(a,b,c,v_cur)
I checked the condition
if v_cur%isopen then
fetching data using the cursor v_cur.
/* I am getting error at this section only */
else
displaying some error message
/* it is not showing this error message */
end if
but I got some error like
v_cur is not a procedure or undefined.
it is not displaying my message what I have written in else part.

Please help me to solve this problem,

Thanks and Regards
Raju