Overview

Introduction

When planning modifications to SAS data sets, be sure to examine the many SAS functions that are available. SAS functions are pre-written routines that provide programming shortcuts for many calculations and manipulations of data.
This chapter teaches you how to use a variety of functions, such as those shown in the table below. You learn to convert data from one data type to another, to work with SAS date and time values, and to manipulate the values of character variables.
Selected SAS Functions and Their Descriptions
Function
Description
Form
Sample Value
YEAR
Extracts the year value from a SAS date value.
YEAR(date)
2002
QTR
Extracts the quarter value from a SAS date value.
QTR(date) ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.