I am having difficulty reading in a file from my c drive location. Here is the code.
data new;
set 'C:\cert\input\input04.sas7bdat';
run;
Here is the error
30 data new;
31 set 'C:\cert\input\input04.sas7bdat';
ERROR: The value 'C:\CERT\INPUT\INPUT04'n is not a valid SAS member name.
32 run;
NOTE: Compression was disabled for data set WORK.NEW because compression overhead would increase the size of the data set.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.NEW may be incomplete. When this step was stopped there were 0 observations and 0 variables.
WARNING: Data set WORK.NEW was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
33
34 %_eg_hidenotesandsource;
SYMBOLGEN: Macro variable _EGNOTES resolves to NOTES
SYMBOLGEN: Macro variable _EGSOURCE resolves to SOURCE
46
47
48 %_eg_hidenotesandsource;
SYMBOLGEN: Macro variable _EGNOTES resolves to NOTES
SYMBOLGEN: Macro variable _EGSOURCE resolves to SOURCE
51
What version of SAS are you running? That error message looks funny. As if you used:
set 'C:\cert\input\input04.sas7bdat'n;
Instead of
set 'C:\cert\input\input04.sas7bdat';
Are you sure those a normal ASCII single quotes? Try typing them again.
Also is SAS running on the same machine as where that file is stored? That junk at the bottom of your log makes it look like you are using Enterprise Guide to run your SAS code. So depending on what server you connected it to SAS might be running on a different machine than where Enterprise Guide is running.
Yes I am using SAS EG and it is server connected. So could that cause the issue with trying to connect to data located on my machine?
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.