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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 1209 views
  • 0 likes
  • 5 in conversation