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

Hello there,

 

I assigned the same SAS library reference to two data sets:

 

It worked out well for the first data as shown in the log :

%Let Qdrive=\\dcwdfap002\\rpuprojects;

Libname SG "&Qdrive.\PA\LA\forensics\LA\SAS Library\ScoreGain";

Log message:

NOTE: Libref SG was successfully assigned as follows:
Engine: V9
Physical Name: \\dcwdfap002\\rpuprojects\PA\LA\forensics\LA\SAS Library\ScoreGain

 

When reading the second data set, it gives and error

 

%Let Qdrive=\\dcwdfap002\\rpuprojects;

Libname SG "&Qdrive.\PA\LA\forensics\LA\SAS Library\Time Analysis";

 

log message:

NOTE: Library SG does not exist.

 

I am reading both data files once.

 

Does anyone know why the second one is not working?

 

Thanks and regards,

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

Almost...except for the final folder.

 

So can you see

 

  \\dcwdfap002\rpuprojects\PA\LA\forensics\LA\SAS Library\Time Analysis

 

In another tool, like Windows Explorer?  Also, I notice you have a double-slash in the middle of the path:

 

%Let Qdrive=\\dcwdfap002\\rpuprojects;

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

View solution in original post

4 REPLIES 4
ChrisHemedinger
Community Manager

The most common cause of this error: the path doesn't exist (or you don't have read access to it).  Double-check the path name to be sure it's correct.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
Alass006
Fluorite | Level 6
I believe the path is almost the same as above.
ChrisHemedinger
Community Manager

Almost...except for the final folder.

 

So can you see

 

  \\dcwdfap002\rpuprojects\PA\LA\forensics\LA\SAS Library\Time Analysis

 

In another tool, like Windows Explorer?  Also, I notice you have a double-slash in the middle of the path:

 

%Let Qdrive=\\dcwdfap002\\rpuprojects;

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
Alass006
Fluorite | Level 6

Thanks Chris for your time and inputs. Even though the log says "NOTE: Libref SG was successfully assigned as follows: ", the library SG does not appear in the libraries folder under SASApp. I am running the codes on Enterprise Guide 7.1. When I run other codes and want to save my sas data in the same library, it says library SG does not exist.

 

Best regards,

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1615 views
  • 0 likes
  • 2 in conversation