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 ...

Get SAS Functions by Example, Second Edition, 2nd 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.