Skip to content

SAS Example Code

Examples, Tips & Tricks

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

Tag: SAS 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
SAS Functions

Extract a Substring in SAS with SUBSTR

In SAS you can use the SUBSTR function to read a part of a string. You indicate the input string,…
12/06/202012/06/2020 SAS Example Code
SAS Functions

Find a Substring in SAS with the FIND function

In SAS you can use the function FIND to check whether a string contains a combination of characters (or a…
12/06/202012/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.