Hi All,
can we define libname like libname mylib "$abc"; i m not sure if this is a valid format.
Thank you in Advanced
If you are not sure if something is valid, TRY IT in SAS and you will find out.
What is $abc, and why would you want it in a LIBNAME statement?
If your SAS session runs on a UNIX platform, and an environment variable named abc (case sensitive!) was defined at SAS startup, and it contains a valid path, this can work.
@Kurt_Bremser wrote:
If your SAS session runs on a UNIX platform, and an environment variable named abc (case sensitive!) was defined at SAS startup, and it contains a valid path, this can work.
Right.
Or if you use the SET option create the environment variable.
options set=abc=/home/me/abc ;
libname abc "$abc";
Under Windows you can also refer to environment variables through SAS.
For example like this:
libname test "!TMP";*refers to the environment variable %TMP% if defined;
libname test clear;
- Cheers -
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.