Xerox 701P21091 manual Specified, Ebcdic is the default

Models: 701P21091

1 498
Download 498 pages 22.54 Kb
Page 38
Image 38

PDL principles and procedures

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

Constant

Definition

Example

 

 

 

 

 

 

 

 

 

EBCDIC

EBCDIC constants are used for

IDEN

PREFIX='DJDE';

 

value and string constants. They

TABLE

CONSTANT='ABCDE';

 

must be preceded by the

 

 

 

 

characters E apostrophe (E’) and

IDEN PREFIX=E'ABC!C4EFG'

 

followed by an apostrophe

 

is equivalent to the hexadecimal

 

character (’). The EBCDIC string

 

IDEN PREFIX=X'C1C2C3C4C5C6C7’

 

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.

 

 

 

 

 

 

Octal

Octal constants should be used

RECORD

CONSTANT=O'07070707'

 

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.

 

 

 

 

 

 

1-10

Using LCDS Print Description Language

Page 38
Image 38
Xerox 701P21091 manual Specified, Ebcdic is the default