echo &1 before rman block and see what value it is taking.

Thanks,