10-03-2016 12:58 PM - edited 10-03-2016 01:05 PM
I downladed SAS university edition and I get this error while running the practice programs in Lesson 2: Working with SAS Programs. I defined the orion library by creating ecprg193 setup. But I still get this error.
10-03-2016 01:14 PM
data work.newcountry; length Country_Code $ 2 Country_Name $ 48; infile "&path/country.dat" dlm='!'; input Country_Code $ Country_Name $; run; proc print data=work.newcountry; run;
The error is as follows:
10-03-2016 01:36 PM
And the code assigning the PATH macro variable?
Note the path is going to be case sensitive. So if you named the folder Ecprg193 then that does not match ecprg193.
10-03-2016 01:42 PM - edited 10-03-2016 01:44 PM
What is the code assigning the path?
This is the code I used for the setup
libname orion "&path";
And ecprg193 is in lowercase. I havent used Ecprg193 or anyother since I know it is case sensitive.
10-03-2016 01:59 PM - edited 10-03-2016 02:08 PM
When you run your setup program, you should see the note in the log:
NOTE: Libref ORION was successfully assigned
Does this show up?
Are you sure you created the folder you are referencing in that location?
10-03-2016 02:20 PM - edited 10-03-2016 02:25 PM
Yes it does show up.
This is what I got in the log-
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
56 %let path=/folders/myfolders/ecprg193;
57 libname orion "&path";
NOTE: Libref ORION was successfully assigned as follows:
Physical Name: /folders/myfolders/ecprg193
59 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
I did not find any error.
10-03-2016 02:23 PM
10-03-2016 04:13 PM
In SAS UE, go to the Server Files and Folders Pane.
Find the ECPRG folder, navigate to the file. Right click the file and select properties. You'll get the path to the file. Use that in your code.
10-04-2016 12:13 PM