%let dirdata="C:\Users\jc3992\Downloads";
libname snow "&dirdata";
/*1*/
data snow.snowfall;
proc import "&dirdata.snow.sas7bdat";
run; Hello everyone, I changed to SAS 9.2 from University Edition because I could not read the full length of a data set by SAS Studio, thus I am not familiar with setting a permanent library. I used the code above to import a data set in a sas. file and the LOG showed this: 77 %let dirdata="C:\Users\jc3992\Downloads";
78 libname snow "&dirdata";
NOTE: Line generated by the macro variable "DIRDATA".
1 ""C:\Users\jc3992\Downloads"
--
49
-
22
--
49
ERROR: Libref SNOW is not assigned.
ERROR: Error in the LIBNAME statement.
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS
release. Inserting white space between a quoted string and the succeeding
identifier is recommended.
ERROR 22-7: Invalid option name C.
79 /*1*/
80 data snow.snowfall;
ERROR: Libref SNOW is not assigned.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.00 seconds
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
NOTE: The SAS System stopped processing this step because of errors.
81 proc import "&dirdata.snow.sas7bdat";
NOTE: Line generated by the macro variable "DIRDATA".
1 ""C:\Users\jc3992\Downloads"snow.sas7bdat
--
49
22
76
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS
release. Inserting white space between a quoted string and the succeeding
identifier is recommended.
ERROR 22-322: Syntax error, expecting one of the following: ;, DATAFILE, DATATABLE, DBMS,
DEBUG, FILE, OUT, REPLACE, TABLE, _DEBUG_.
ERROR 76-322: Syntax error, statement will be ignored.
82 run;
May I ask how can I assign the libref snow? Thank you!
... View more