ENCODE

Syntax

ENCODE src_code_string_lit INTO dst_txt_var

Description

Assigns a nondisplay or display character to a string variable.

The ENCODE command can define nondisplay characters or escape sequences sent to an output device. These characters or sequences can perform complex output device manipulations. The ENCODE command also displays characters not on the keyboard. If your keyboard does not have the euro symbol, use the ENCODE feature to create a string variable for it.

The encode characters can be included in a report at the appropriate location using a PRINT or PRINT-DIRECT command.

Unicode (UCS-2) code that points from <1> to <65535> can be defined in the ENCODE command.

Parameters

Parameter Description

src_code_string_lit

Specifies a string of characters to be encoded and placed in dst_txt_var.

dst_txt_var

Contains the result after execution.

Example

The following example illustrates the ENCODE command:

encode '<27>L11233' into $bold            ! Code sequence to turn bold on.
print $bold () code-printer=lp

See The chr function described in the Miscellaneous Functions table under the LET command

See PRINT, PRINT-DIRECT