beautypg.com

Xerox 4112-4127 Enterprise Printing System-192 User Manual

Page 36

background image

PDL principles and procedures

1-10

Using LCDS Print Description Language

EBCDIC

EBCDIC constants are used for
value and string constants. They
must be preceded by the
characters E apostrophe (E’) and
followed by an apostrophe
character (’). The EBCDIC string
type allows hexadecimal
representation of characters to be
embedded in a character string.
This is done by preceding the
hexadecimal representation of the
character with an ! character.
Each character represented in
EBCDIC results in one byte. Each
three character sequence
representing a character
hexadecimally results in one byte.
NOTE: If no character type is
specified, EBCDIC is the default.

IDEN PREFIX='DJDE';
TABLE CONSTANT='ABCDE';

IDEN PREFIX=E'ABC!C4EFG'

is equivalent to the hexadecimal

IDEN PREFIX=X'C1C2C3C4C5C6C7’

Octal

Octal constants should be used
only as string constants because
of the control program conversion
process. Each octal character
results in three bits.
Each octal character pair is
converted internally to an 8 bit
octal character by prefixing two
binary zeros. Thus, the arithmetic
value of a multiple character octal
constant may be difficult to
determine, because each digit in
the constant has been altered.
An octal constant must be
preceded immediately by the
characters letter O apostrophe (O’)
and immediately followed by the
apostrophe (’) character.

RECORD CONSTANT=O'07070707'

Table 1-2. Types of string constants (Continued)

Constant

Definition

Example