I haven't found any specific information about this, but it would make sense if this is possible only in session scope.
Have you tried?
And...why?
Hello LinusH,
we have limited oracle sessions count in one of the environments, thus we need to reduce the number of oracle librefs. This is why we try to disassociate some of them.
What do you mean by session scope? I know that it's possible to assign and clear the libname in a single session, but we have the librefs preassigned, unfortuntelly.
Regards!
Won't just this:
libname LIB clear;
in autoexec in EG do the thing?
In SAS EG project tree add a program named "autoexec" and insert that line there.
Bart
Thanks yabwon!
We haven't tried this but wouldn't it be the same as "libname x clear" in stp code?
Still it's worth a shot 😉 I'll get back.
Fail 😞
The warning is the same as in the open code: "libref was not declared in this scope"
Regards! 🙂
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!