Help using Base SAS procedures

LIBNAME statement

Reply
N/A
Posts: 0

LIBNAME statement

Hello All

I am trying to set up a library in SAS by using the LIBNAME statement.

The following is the LIBNAME statement:
libname fclus 'O:\LSHARED\Pappu\Branch Segmentation - Cluster Analysis Project\Total Revamp - 2009 data - Apr2009\SAS\fclus09';
I am getting the note.

NOTE: Library FCLUS does not exist.

Please note that I am trying to reference a shared drive and not sure if the problem is due to that.

thanks
pappu.
Trusted Advisor
Posts: 2,116

Re: LIBNAME statement

Posted in reply to deleted_user
This usually occurs because you have a typo in the name for the SAS-data-Library. SAS data libraries are fine on shared drives. If you can see the library with the "My Computer" tool, SAS can see it with the LIBNAME.
N/A
Posts: 0

Re: LIBNAME statement

Posted in reply to deleted_user
Well - I copied the fielpath from the browser, so the chance of an error is removed from the criteria.

I am not sure if SAS will accept such a long filepath - is it due to that?

Thanks
Pappu
Super Contributor
Super Contributor
Posts: 3,174

Re: LIBNAME statement

Posted in reply to deleted_user
And what happens when you take the libname path information and paste it back into a suitable location to view the file drive/directory? If you are able to interchange the path information and still get a SAS error, I recommend you open a SAS support tracking issue.

Scott Barry
SBBWorks, Inc.
N/A
Posts: 0

Re: LIBNAME statement

Posted in reply to deleted_user
if through enterprise guide(for example) your libname statement is running on a server, it is possible that the drive O: has a different meaning in that SAS environment, from its meaning in your client session.
That problem can be circumvented by investigating the server drive mappings, or using a UNC path in the libname statement.

good Luck

PeterC
N/A
Posts: 0

Re: LIBNAME statement

Posted in reply to deleted_user
What is UNC path in the libname statement?
Super Contributor
Super Contributor
Posts: 3,174

Re: LIBNAME statement

Posted in reply to deleted_user
Suggest Google search argument:

define unc path

Scott Barry
SBBWorks, Inc.
SAS Employee
Posts: 174

Re: LIBNAME statement

Posted in reply to deleted_user
Is fclus09 your sas dataset or a folder ?
N/A
Posts: 0

Re: LIBNAME statement

Posted in reply to GertNissen
That is my folder
New Contributor
Posts: 2

Re: LIBNAME statement

Posted in reply to deleted_user
Hello all,

How can my pc environment is setup automatically once I start SAS application? Currently, I have to copy/paste the statements like libname mylib 'c:sasdata'; or option OPTIONS FMTSEARCH=(mylib); to my working editor screen every time when I start SAS.

Thank you
Super Contributor
Super Contributor
Posts: 3,174

Re: LIBNAME statement

Posted in reply to nancyli_may2009_hotmail_com
Please do not piggy-back on another individual's prior post - create your own new post and if necessary paste the link (or make suitable) reference to some prior post.

Scott Barry
SBBWorks, Inc.
New Contributor
Posts: 2

Re: LIBNAME statement

I know "new" is not an excuse here...I am sorry. (now I know how to post new )
Trusted Advisor
Posts: 2,116

Re: LIBNAME statement

Posted in reply to deleted_user
NancyLi,

I agree with Scott on the postings, but you are a newbee, so the answer is to use the autoexec.sas file for your things that you want to do at startup. Check out your OS companion document for Windows specific features and otherwise search for autoexec in the SAS documentation.
Ask a Question
Discussion stats
  • 12 replies
  • 534 views
  • 0 likes
  • 5 in conversation