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

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