ENCODISVALID Function

specifies a valid encoding name.
Category: Encoding

Syntax

ENCODISVALID(source)

Required Argument

source
a character string that represents an encoding name.

Details

The ENCODISVALID function returns the following values:
0 the character string is not a valid encoding name.
1 the character string is a valid short encoding name.
2 the character string is a valid long encoding name.
3 the character string is a valid alias encoding name.

Example

The following examples demonstrate the ENCODISVALID features:
SAS Statements
Results
isValid= EncodIsValid(“xyz”);
put isValid;
0
isValid= EncodIsValid(“wlt2”);
put isValid;
1
isValid= EncodIsValid(“wlatin2”);
put isValid;
2
isValid= EncodIsValid(“cp1250”);

put isValid;
3