DATA Step, Macro, Functions and more

How to Create Permanent Library with sas program??

Reply
Contributor
Posts: 36

How to Create Permanent Library with sas program??

I wanted to create Permanent sas library rather than using field option. Is there any way for that?

 

Please help

Super User
Posts: 5,426

Re: How to Create Permanent Library with sas program??

Any library that is not SASwork can be considered as permanent.

No idea of what SAS client you are using ("filed option"?)

Data never sleeps
Super User
Super User
Posts: 7,942

Re: How to Create Permanent Library with sas program??

Hi,

 

Please clarify your question, I do not know what "field option" is.  To create a permanent library first create a folder in an area accessible to SAS on your local machine/image/network.  Next use the libname syntax to apply a libname to the that folder.  Next copy your data into the folder using datastep e.g.:

libname mine "c:\temp_store";

data mine.want;

  set work.have;

run;

Contributor
Posts: 25

Re: How to Create Permanent Library with sas program??

If you are using SAS on z/Os then simplest way to create permanent SAS library is as below, Once you execute the below line SAS creates a permanent library called ABC.DEF.GHI with default parameters and assigns it to your session.

LIBNAME NEW_PERM_LIB 'ABC.DEF.GHI' DISP=NEW ;

 

Super User
Posts: 11,343

Re: How to Create Permanent Library with sas program??

Depending on your version of SAS there is also how to get the next SAS session to recognize the library. Reference in an Autoexec.sas, other program code, settings in the GUI.

Ask a Question
Discussion stats
  • 4 replies
  • 228 views
  • 0 likes
  • 5 in conversation