HP 3000 Manuals

The SET(LANGUAGE) Statement [ HP Transact Reference Manual ] MPE/iX 5.0 Documentation


HP Transact Reference Manual

The SET(LANGUAGE) Statement  

The SET(LANGUAGE) statement specifies the native language to be used by
Transact:

     SET(LANGUAGE) [language[,STATUS]];

The SET(LANGUAGE) statement allows the programmer to specify or change
the native language at run time.  The programmer can either specify a
literal language name or number in quotes (which is checked at compile
time) or the name of a data item which will contain the language number
at run time.  The data item must begin on a word boundary.  Refer to the
Native Language Support Reference Manual for a list of the names and
numbers assigned to the available languages.

If STATUS is not specified and the operation is successful, Transact sets
the status register to the number of the language in effect before the
language is changed.  If an error results, Transact returns the error
message to the user, sets the status register to -1, and leaves the
native language unchanged.  If STATUS is specified, Transact suppresses
the error message, and the contents of the status register is the same as
described above.

If you omit language, Transact sets the status register either to the
number of the current language and then resets the language number to 0
(NATIVE-3000), or to the language number of the calling program if
SET(LANGUAGE) is issued in a called program.  A compiler error results if
the STATUS option is specified without language.

When you change languages using SET(LANGUAGE), any previously entered
data is unchanged and remains in the format in which it was entered.  Any
new data is stored in the format appropriate to the specified language.



MPE/iX 5.0 Documentation