Chapter 15

Variable Information Functions

 

Introduction

Functions That Determine SAS Variable Information

VTYPE

VTYPEX

VLENGTH

VNAME

VLABEL

CALL VNEXT

VVALUE

Functions That Determine Format Information

VFORMAT

VFORMATD

VFORMATN

VFORMATW

Functions That Determine Informat Information

VINFORMAT

VINFORMATD

VINFORMATN

VINFORMATW

 

Introduction

The functions in this chapter all return information about SAS variables. For example, VNAME returns the name of a variable, given an array reference. VTYPE is used to determine if a variable is character or numeric. The advantage of these functions over the VAR functions listed in the previous chapter is that the OPEN function is not needed to obtain variable information.

As a general class, there are ...

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.