I am trying to find a way of getting the Environment Variables while running SAS under Windows XP O/S. I need to be able to find the 'Home' folder. Have tried %sysget but this probably only works for Unix. I am using SAS Base Version 8.02.
Thanks in advance for any help.
Tony
Thanks again Chris,
I have tried the above but have a problem still when the macro variable is used in a following data step.
I have used VAL17 in this instance which is equivalent to LIB2 in last post. Following is extract from log :-
2706 %put "&VAL17.";
"D:\Lib_Folder
"
2707
2708
2709...
Thanks Chris - that worked very well. Libraries created OK
I am having difficulty now using the macro variables in a concatenation string e.g.
below the libname statements , I have the following currently in the code :-
%let FormatList = 'D:\Lib_Folder\Format List.csv';
One of my LIB...
Hi all, I'm fairly new to SAS programming and have the following Question :-
I have about 6 SAS scripts , all of which have Libname statements coded at the start of the modules with hard-coded paths to windows folders. I have generated a CSV file which contains a name and a value of the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.