ENCODE

Function

Assigns a non-display or display character to a string variable.

Syntax

ENCODE src_code_string_lit INTO dst_txt_var

Arguments

src_code_string_lit

String of characters to encode and place in dst_txt_var.

dst_txt_var

Result after execution.

Description

ENCODE can define nondisplay characters or escape sequences sent to an output device. These characters or sequences can perform complex output device manipulations. ENCODE also displays characters not in 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 PRINT or PRINT-DIRECT.

Only values <001> to <255> can be defined in ENCODE.

Examples

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

See Also