Previous Page | Next Page

Functions for NLS

VTRANSCODE Function



Returns a value that indicates whether transcoding is enabled for the specified character variable.
Category: Variable Information

Syntax
Arguments
Details
Comparisons
Example
See Also

Syntax

VTRANSCODE (var)


Arguments

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


Example

Statements Result

----+----1----+
attrib x transcode = yes;
attrib y transcode = no;
rc1 = vtranscode(y);
put rc1=;
rc1=0


See Also

Functions:

VTRANSCODEX Function

Statements:

ATTRIB in SAS Language Reference: Dictionary

Previous Page | Next Page | Top of Page