Help using Base SAS procedures

How do I make permanent Libarary?

Reply
Contributor
Posts: 53

How do I make permanent Libarary?

I know I can use Library Wizard to create library and tick on 'Enable at start up' option to make the library permenant.

But how do I do it with LIBNAME statement?

Super Contributor
Posts: 279

How do I make permanent Libarary?

libname mydata 'C:\Libraries\Documents';

/*this creates a reference to the documents folder*/

data mydata.one;

set two;

run;

/*this will create a permanent data set named one into the destination determined by the libname statement.*/

Contributor
Posts: 53

How do I make permanent Libarary?

Yes, it sure does make permanent dataset BUT it does not make permanent library. mydata, the library, will disappear if I quit SAS session and rerun it.

PROC Star
Posts: 7,471

How do I make permanent Libarary?

Contributor
Posts: 53

How do I make permanent Libarary?

So only way is to use library wizard. No options available in LIBNAME statement to do the same thing?

Super Contributor
Posts: 279

How do I make permanent Libarary?

I do what Linlin posted.  If you're running SAS 9.3 the directory is a little different:  C:\Program Files\SASHome\SASFoundation\9.3

Contributor
Posts: 53

How do I make permanent Libarary?

I think it's just a manual way of doing what library wizard with 'enable at start up' option does .

Super Contributor
Posts: 1,636

How do I make permanent Libarary?

This is how I make "permanent" library:

libname mydata 'C:\Libraries\Documents';

save the sas code as "autoexec.sas" in directory

"C:\Program Files\SAS\SASFoundation\9.2"

Contributor
Posts: 53

Re: How do I make permanent Libarary?

Lin, using similar methods you mentioned can I make the Notepad to have the first line look like;

----+----1----+----2----+----3----+----4----+----5----+

So that if I open a text file with some data with Notepad, the first line will look like above, and whatever is contained in the text file will start from the second line?   

PROC Star
Posts: 7,471

Re: How do I make permanent Libarary?

Somehow I think you've got your threads mixed up.  However, in answer to your question, just use Wordpad rather than Notepad and make courier or new courier the default font.  Wordpad has a built-in ruler.

Ask a Question
Discussion stats
  • 9 replies
  • 830 views
  • 3 likes
  • 4 in conversation