BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
sgleeson2
Calcite | Level 5

Occasionally when trying to define a library I get the following error:

sgleeson2_0-1677235678112.png

 

Coming from running the below code:

sgleeson2_1-1677235707461.png

The error message has included a '?' at the beginning of the libname and as such detects an error, but there is no question mark in the submitted statements. This doesn't happen all the time, but is very frustrating when it does. The pathfiles defined are definitely correct and can be accessed, anyone have an idea as to why I get this error?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Some how you have a non-printable character before the C character. Delete quotes through the C: and  Retype that part of the code. This typically happens if you copy/paste from some other document like a word processor file or website.

 

Note: instead of going to the headache of making a picture just copy the text from the LOG and on the forum open a text box using the </> icon above the main message window. If you have something that is more complex and we want to show proper syntax or a different approach that way we can use your code. Otherwise we have to retype everything and the longer the code with an issue the less like someone is going to retype it. If the errors you get involve a data step or procedure include the entire text of the data step or procedure along with all notes, warnings and/error messages as frequently an error relates to something above where SAS finds the error. The text box is to preserve formatting of the log or editor text as this forum will reformat text and sometimes is one of those sources of non-printable characters.

 

View solution in original post

2 REPLIES 2
ballardw
Super User

Some how you have a non-printable character before the C character. Delete quotes through the C: and  Retype that part of the code. This typically happens if you copy/paste from some other document like a word processor file or website.

 

Note: instead of going to the headache of making a picture just copy the text from the LOG and on the forum open a text box using the </> icon above the main message window. If you have something that is more complex and we want to show proper syntax or a different approach that way we can use your code. Otherwise we have to retype everything and the longer the code with an issue the less like someone is going to retype it. If the errors you get involve a data step or procedure include the entire text of the data step or procedure along with all notes, warnings and/error messages as frequently an error relates to something above where SAS finds the error. The text box is to preserve formatting of the log or editor text as this forum will reformat text and sometimes is one of those sources of non-printable characters.

 

sgleeson2
Calcite | Level 5
Thank you! Was copying filepaths from the properties tab of a folder, this has fixed it 😃

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1118 views
  • 0 likes
  • 2 in conversation