BookmarkSubscribeRSS Feed
vandhan
Fluorite | Level 6

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

 

Please help

4 REPLIES 4
LinusH
Tourmaline | Level 20

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
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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;

nrk1787db1
Obsidian | Level 7

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 ;

 

ballardw
Super User

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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1517 views
  • 0 likes
  • 5 in conversation