Previous Page | Next Page

Functions and CALL Routines

VVALUE Function



Returns the formatted value that is associated with the variable that you specify.
Category: Variable Information
Restriction: Use only with the DATA step

Syntax
Arguments
Details
Comparisons
Examples
See Also

Syntax

VVALUE(var)


Arguments

var

specifies a variable that is expressed as a scalar or as an array reference.

Restriction: You cannot use an expression as an argument.

Details

If the VVALUE function returns a value to a variable that has not yet been assigned a length, by default the variable is assigned a length of 200.

VVALUE returns a character string that contains the current value of the variable that you specify. The value is formatted using the current format that is associated with the variable.


Comparisons


Examples

SAS Statements Results
y=9999;
format y comma10.2;
v=vvalue(y);
put v;



9,999.00


See Also

Functions:

VVALUEX Function

"Variable Information" functions in Functions and CALL Routines by Category

Previous Page | Next Page | Top of Page