Chapter Contents

Previous

Next
VARNUM

VARNUM



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
VARNAME


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.