Previous Page | Next Page

Functions and CALL Routines

VARNUM Function



Returns the number of a variable's position in a SAS data set.
Category: SAS File I/O

Syntax
Arguments
Details
Examples
See Also

Syntax

VARNUM(data-set-id,var-name)


Arguments

data-set-id

specifies the data set identifier that the OPEN function returns.

var-name

specifies the variable's name.


Details

VARNUM returns the number of a variable's position in a SAS data set, or 0 if the variable is not in the SAS data set. This is the same variable number that is next to the variable in the output from PROC CONTENTS.


Examples


See Also

Functions:

OPEN Function

VARNAME Function

Previous Page | Next Page | Top of Page