BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Paul_de_Barros
Obsidian | Level 7

The topic linked below has a brief explanation of the BASE option.  The accepted answer has links to the documentation, but the links are broken (possibly because they were posted 5 years ago).  Where can I find the current documentation on using the BASE option in a LIBNAME statement?

 

https://communities.sas.com/t5/SAS-Programming/Base-option-in-libname-statement/m-p/298243

1 ACCEPTED SOLUTION
4 REPLIES 4
FreelanceReinh
Jade | Level 19

Hello @Paul_de_Barros,

 

The "BASE" engine (as an alias of the V9 engine in SAS 9.x) is mentioned in the SAS Companion for Windows (and also in the SAS Companion for UNIX).

Under LIBNAME Statement: Windows it says:

engine-name

is one of the following library engines supported under Windows:

V9 accesses SAS 9, SAS 9.1, SAS 9.2, SAS 9.3, and SAS 9.4 data sets. You can use the nickname BASE for this engine.
Tom
Super User Tom
Super User

The BASE engine just means use the default engine for the version of SAS you are currently running.  In general it is not needed, but you might need it if you are pointing at a directory that includes SAS datasets using different engines (currently really only V6 and V7/V8/V9).  This is because SAS if you don't specify the engine then SAS will look at the file extensions on the files in the directory.  If it only sees files that using the extension used by V6 (like .ssd01 or .ssd) then it will default to using that engine.

 

For example if you wanted to convert all of the V6 files in a directory into modern dataset structures you could code like this:

libname old v6 '/mypath';
libname new base '/mypath';
proc copy inlib=old outlib=new;
run;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 806 views
  • 2 likes
  • 4 in conversation