Facing error 'invalid SQL statement' while working with cursor variables in PL/SQL
OK I found where the problem is
the syntax for calling the procedure is incorrect
I have to call the procedure like this :

begin

   s_print_data(1);
  end;


and everything works fine