Search the site...

SASCRUNCH TRAINING
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
Sentry Page Protection
Please Wait...
Variable Attributes [15-17]


Summary of Variable Formats
Variable Format is one of the most challenging concepts in SAS.

If you don't find it that difficult to understand, congratulation. The rest of the SAS training should be just a piece of cake for you.

Let's have a summary of variable format before we continue:

  1. Variable Format is commonly used on numeric variables. It allows you to display the data differently than the actual values stored in SAS.

  2. The W.D format allows you to control how many decimal places to display.

    W=Width and D=Decimal Places


  3. The Dollar and Comma formats allow you to display the dollar amount properly with the comma separator and the dollar sign ($).

  4. SAS uses a special system to keep track of the date and time value.

    Date
    0 = January 1, 1960
    1 = January 2, 1960
    ...
    1000 = September 27, 1962

    Time
    0 = 0:00:00
    1 = 0:00:01
    60 = 0:01:00
    3600 = 1:00:00

    The system keeps the date and time values in a numeric variable so that you can easily calculate the duration between different 
    time point. 

  5. The Date and Time format allow you to display the date and time value properly in SAS.

  6. You can also create your own format using Proc Format. 

  7. Last but not least, the (Best.) format allows you to display the internal values of the variable. It removes all the special formats from the variable.
Okay, got it.

Already a member? Go to member's area.