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 14

SAS File I/O Functions

 

Introduction

Functions That Determine if SAS Data Sets Exist, and That Open and Close Files

EXIST

OPEN

CLOSE

Functions That Return SAS Data Set Characteristics

ATTRC

ATTRN

DSNAME

Functions That Return Variable Information

VARFMT

VARLABEL

VARLEN

VARNAME

VARNUM

VARTYPE

 

Introduction

The functions in this chapter address SAS data sets. There are functions to determine the number of observations in a data set, the number of character and numeric variables, and the formats and labels associated with each variable. You can readily obtain much of the same information produced by PROC CONTENTS by using these functions.

 

If you need to obtain SAS variable information, the V functions are also available and may ...

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