charset utility

Use the charset utility to load character sets and sort orders into Adaptive Server. If you are using charset to load the default character set and sort order, this should be done only at the time of installation.

To change the default character set and sort order of Adaptive Server, see the System Administration Guide.

Syntax

charset
[ -U username ]
[ -P password ]
[ -S server ]
[ -I interfaces ]
[ -v version ]
sort_order
[ charset ]
Table 7-19: Keywords and options for charsets

Keywords and Options

Description

-U

If you are not already logged in to your operating system as “sa”, you must specify “-Usa” or “/username = sa” in the command line.

-P

Specifies the “sa” password on the command line. If not specified, the user is prompted for the “sa” password.

-S

Specifies the name of the server. If not specified, charset uses the DSQUERY environment variable to identify the server name. If there is no DSQUERY environment variable, charset attempts to connect to a server named “SYBASE.”

-I

Specifies the interfaces file to use. If not specified, charset uses the interfaces file in the SYBASE directory.

-v

Causes the Sybase version string to be printed, then exits. Use with no other options specified.

sort_order

When charset is used to load the default character set and sort order, sort_order is a mandatory parameter specifying the name of the sort order file to be used by Adaptive Server. When loading additional character sets, use charset.loc to indicate the name of the character-set files.

charset

Specifies the directory of the character set to be used by Adaptive Server.