O'Reilly logo

SAS Functions by Example, Second Edition, 2nd Edition by Ron Cody

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10

Special Functions

 

Introduction

Functions That Obtain Values from Previous Observations

LAG and LAGn

DIF and DIFn

Functions That Perform Character-to-Numeric or Numeric-to-Character Conversion

INPUT

INPUTC

INPUTN

PUT

PUTC

PUTN

Function That Sets Variable Values to a SAS Missing Value

CALL MISSING

 

Introduction

The title of this chapter may cause you to think that these functions are somehow esoteric or unimportant. In fact, these functions are some of the most commonly used functions in the SAS arsenal—they just don't fit easily into any of the other categories of SAS functions.

 

Functions That Obtain Values from Previous Observations

These two functions are grouped together because of their similar applications. The LAG ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required