i am programming in proc.
i have a local variable 'ls_date' inside a function. and using that inside a PL/SQL block inside the same function.
It's erroring as "Identifier LS_DATE must be declared".
but the same program is working when i declared the variable 'ls_date' with global scope.
what's the reson for this?