Returns a value that indicates whether transcoding is enabled
for the specified argument.
Category: |
Variable Information
|
- var
-
specifies any SAS character expression that evaluates to
a character variable name.
Restriction: |
The value of the specified expression
cannot denote an array reference. |
The VTRANSCODEX 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.
-
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.
Statements |
Result |
|
----+----1----+
|
attrib x transcode = yes;
attrib y transcode = no;
rc1 = vtranscodex('y');
put rc1=;
|
rc1=0
|
|
Functions:
|
|
Statements:
|
ATTRIB in
SAS Language Reference: Dictionary | |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.