Skip to content

SAS Example Code

Examples, Tips & Tricks

  • How To’s
  • Functions
  • Statements
  • Formats
  • Macros
  • Data Visualisation
  • About

Category: SAS Functions

SAS Functions

Concatenate Strings with CAT, CATT, CATS & CATX

Concatenate Strings in SAS In SAS you can concatenate strings in a variety of ways. This article answers the question…
20/06/202020/06/2020 SAS Example Code
SAS Functions

Create Date Variables in SAS with the MDY Function

Date Variables in SAS SAS stores all dates variables as numbers with the 1st of January 1960 as zero. So,…
16/06/202014/06/2020 SAS Example Code
SAS Functions

How to Extract a Specific Word from a SAS String

In SAS, you can use the SCAN function to extract a word from a string. This function takes the string…
15/06/202020/11/2021 SAS Example Code
SAS Functions

How to Easily Calculate the Difference Between Two SAS Dates

In SAS you can calculate the difference between two dates with the INTCK function. For example, you can calculate the…
14/06/202022/05/2021 SAS Example Code
SAS Functions

Increment SAS date with the INTNX function

Increment a SAS date In SAS you can increment a SAS date with the INTNX function. For example, you can…
13/06/202013/06/2020 SAS Example Code

Posts navigation

Older Posts
Newer Posts

Search

  • How To’s
  • Functions
  • Statements
  • Formats
  • Macros
  • Data Visualisation
  • About
  • Privacy Policy
  • Advertise
WordPress Theme: BlogGrid by TwoPoints.