- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Good evening
I am facing a difficulty on running libname.sas to get PG2 library.
I am having an error on submitting libname and when checking on libraries I see that PG2 is there, but I can run the other SAS codes because libname.sas' notes that PG2 does not exist.
libname.sas codes
%let path=s:/workshop/EPG2V2/data;
/**********************************************/
/* DO NOT EDIT THE CODE BELOW */
/**********************************************/
libname PG2 "&path";
notes:
84 libname PG2 "&path";
NOTE: Library PG2 does not exist.
Any help
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@eiraduku wrote:
libname.sas codes
%let path=s:/workshop/EPG2V2/data;
/**********************************************/
/* DO NOT EDIT THE CODE BELOW */
/**********************************************/libname PG2 "&path";
notes:
84 libname PG2 "&path";
NOTE: Library PG2 does not exist.
The name of the folder in the LIBNAME statement is incorrect. The is no such folder as s:/workshop/EPG2V2/data and so SAS cannot find this folder which doesn't exist (and why do you need a macro variable for this anyway?)
I'm guessing, because you didn't provide those details, that you are using a server version of SAS, perhaps SAS Studio, which cannot access your computer's local drives, such as the S: drive. In that case, you would have to upload the appropriate data set(s) to the server, and then access them via the server folder name in the LIBNAME statement.
Paige Miller
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@eiraduku wrote:
libname.sas codes
%let path=s:/workshop/EPG2V2/data;
/**********************************************/
/* DO NOT EDIT THE CODE BELOW */
/**********************************************/libname PG2 "&path";
notes:
84 libname PG2 "&path";
NOTE: Library PG2 does not exist.
The name of the folder in the LIBNAME statement is incorrect. The is no such folder as s:/workshop/EPG2V2/data and so SAS cannot find this folder which doesn't exist (and why do you need a macro variable for this anyway?)
I'm guessing, because you didn't provide those details, that you are using a server version of SAS, perhaps SAS Studio, which cannot access your computer's local drives, such as the S: drive. In that case, you would have to upload the appropriate data set(s) to the server, and then access them via the server folder name in the LIBNAME statement.
Paige Miller
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
The issue was on the path to data.