Functions for NLS |
Category: | Variable Information |
Syntax | |
Arguments | |
Details | |
Comparisons | |
Example | |
See Also |
Syntax |
VTRANSCODE (var) |
specifies a character variable that is expressed as a scalar or as an array reference.
Restriction: | You cannot use an expression as an argument. |
Details |
The VTRANSCODE function returns 0 if transcoding is off, and 1 if transcoding is on.
By default, all character variables in the DATA step are transcoded. You can use the TRANSCODE= attribute of the ATTRIB statement to turn transcoding off.
Comparisons |
The VTRANSCODE function returns a value that indicates whether transcoding is enabled for the specified variable. The VTRANSCODEX function, however, evaluates the argument to determine the variable name. The function then returns the transcoding status (on or off) that is associated with that variable name.
The VTRANSCODE function does not accept an expression as an argument. The VTRANSCODEX function accepts expressions, but the value of the specified expression cannot denote an array reference.
Related functions return the value of other variable attributes, such as the variable name, type, format, and length. For a list of the variable attributes, see the "Variable Information" functions in SAS Language Reference: Dictionary.
Example |
Statements | Result |
---|---|
|
----+----1----+ |
attrib x transcode = yes; attrib y transcode = no; rc1 = vtranscode(y); put rc1=; |
rc1=0 |
See Also |
Functions: | |||
Statements:
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.