BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
chitrajeth
Fluorite | Level 6

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 OPTIONS
 
showing this error.. how to fix it

 

1 ACCEPTED SOLUTION

Accepted Solutions
AMSAS
SAS Super FREQ

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/" ;

View solution in original post

9 REPLIES 9
ballardw
Super User

@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 OPTIONS
 
showing 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.

PaigeMiller
Diamond | Level 26

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).

--
Paige Miller
chitrajeth
Fluorite | Level 6

Still showing the error

Amir
PROC Star

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.

chitrajeth
Fluorite | Level 6
still showing the same error
AMSAS
SAS Super FREQ

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
Fluorite | Level 6
LIBNAME pg1 "/home/u60593001/EPG1V2/data/"

ERROR: Libref PG1 is not assigned.
ERROR: Error in the LIBNAME statement.
ERROR 22-7: Invalid option name OPTIONS.

same error
chitrajeth
Fluorite | Level 6
Thank you so much.. It worked 🙂
Amir
PROC Star

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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 9 replies
  • 1009 views
  • 2 likes
  • 5 in conversation