As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.

Main Page

From sasCommunity
Revision as of 22:33, 14 February 2014 by ArtCarpenter (Talk | contribs)

Jump to: navigation, search

Welcome to

A collaborative online community for SAS® users worldwide. is an ongoing global community effort—created by SAS users for SAS users. This site is a place to find answers, share technical knowledge, collaborate on ideas and connect with others in the worldwide SAS Community. Get started now by creating a UserID.

Follow Us
For daily SAS Tips, Web updates & more.

sasCommunity Tip of the Day

data show;
    val = 55;
    b2 = log2(val);
    v2 = log(val) / log(2);
    put b2= ;
    put v2=;

SAS supports only 3 bases for the log function, namely, {2, 10, exp(1)}, corresponding to functions log2(), log10(), and log(), respectively.

Sometimes, we need to calculate log value of any positive base number, just as in Excel or some other programming environment, we have function like log(Val, Base). It is not hard to do so by noting that we can calculate logarithms with other base values by dividing the result of the log() function with log(base), where log() is the natural logarithm function.

Therefore, log(Value, Base)=log(Value)/log(Base). This can be shown in this short DATA step to the right.

Submitted By Liang Xie

Feel free to comment on this tip.

Prior tip - Next tip -- Random Tip

Submit a Tip

Check out the Tip of the Day page for details about this effort.

What's New

SAS Global Forum Registration Special:

Have you been waiting to register for SAS Global Forum 2014? Wait no longer! Now is the time! For a limited time, from February 14 to Februatry 21 a discounted registration is being offered. This is a President's Day Special – Buy One Registration and Bring a Colleague for 50% Off! Read more and sign up now at the SAS Global Forum Site.

WANTED: Your SAS User Tips.

Facts about the Tip of the Day project:

  • Anyone can submit a SAS user tip. Just login with your user idea and follow the directions here.
  • A team of SAS users review tips for accuracy. Here is the list under review (feel free to add comments).
  • SAS users have submitted over 275 tips! Browse and search the list.
  • SAS user tips are always welcome. Keep them coming!








Join Get Involved Sasopedia Events User Groups
9,514 UserIds have been created on!
This number will decrease while userid cleanup is in process.
View the Web-site usage statistics and the definition of terms.