I wanted to create Permanent sas library rather than using field option. Is there any way for that?
Please help
Any library that is not SASwork can be considered as permanent.
No idea of what SAS client you are using ("filed option"?)
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;
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 ;
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.
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!
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.