🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 08-27-2018 02:55 AM
(9183 views)
I am getting the errors mentioned in the screenshots while writing the program. I am using the SAS Studio via Oracle VM Virtual Box, so I don't have the path available for specifying the libname, I'm exporting the Cars table into my folders and then using that path. Please help me on how to specify the path.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You are including a file name (cars.dta) in your libname statement when it should only contain a folder name. If you change your libname statement to:
libname libsas '/folders/myfolders';
Your code will work
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Please post the log using {i}-icon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
LOGS:
OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73
74 /* %let dirdata="/folders/myfolders/CARS.csv"; */
75 libname libsas '/folders/myfolders/CARS.dta';
ERROR: Library LIBSAS is not in a valid format for access method RANDOM.
ERROR: Error in the LIBNAME statement.
76 /*1*/
77 /* data snow.snowfall; */
78 data libsas.ecars;
79 set sashelp.cars;
80 where Origin='Europe';
81 run;
ERROR: Libref LIBSAS is not assigned.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
82 proc print data=libsas.ecars;
ERROR: Libref LIBSAS is not assigned.
83 run;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
84
85
86
87 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
100
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You are including a file name (cars.dta) in your libname statement when it should only contain a folder name. If you change your libname statement to:
libname libsas '/folders/myfolders';
Your code will work
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Yes, removing Cars.dta from path worked fine. Thank you. 🙂