LIBNAME pg1 base ""/home/u60593001/EPG1V2/data/"
Try this, but be warned if you are running interactive SAS you might need to restart your session to correct unbalanced quotes.
LIBNAME pg1 base "/home/u60593001/EPG1V2/data/" ;
@chitrajeth wrote:
LIBNAME pg1 base ""/home/u60593001/EPG1V2/data/"
ERROR: libref PG1 is not assigned.ERROR: Error in the LIBNAME statement.ERROR 22-7: Invalid option name OPTIONSshowing this error.. how to fix it
If that is indeed what you used for code there are too many quotes at the beginning. There should be either one single quote or one double quote (the same type) before and after the path.
And there needs to be a semi-colon after the LIBNAME command
And there is no BASE engine that I know of (although maybe there is when you use operating systems that I have never used).
Still showing the error
Hi @chitrajeth,
You appear to have too many quotes at the start of the library path. Try again after removing one of the quotes at the start of the path.
Kind regards,
Amir.
Try this, but be warned if you are running interactive SAS you might need to restart your session to correct unbalanced quotes.
LIBNAME pg1 base "/home/u60593001/EPG1V2/data/" ;
Hi @chitrajeth,
If none of the responses given so far help, then I suggest you post more of your log using the "</>" (Insert Code) icon, showing some lines before and after the libname statement, as one of the errors refers to "options" which is not in the code you have posted:
ERROR 22-7: Invalid option name OPTIONS
Kind regards,
Amir.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.