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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1077 views
  • 2 likes
  • 4 in conversation