Previous Topic: DB13239ENext Topic: DB13241E


DB13240E

INVALID LITERAL TYPE NEAR POSITION nnnn

Reason:

Near position nnnn, the Accounting Facility encountered a logical expression involving a literal expressed with the syntax reserved for a comparison with an element of a type different from the element with which it is being compared. For example, an element defined as B or D cannot be compared with a string literal in single quotes.

Syntactical requirements for expressing the literals which are being compared with elements of type C (character string), N (numeric string), B (unsigned binary), and D (packed decimal) are as follows:

Element Type

Syntax for Literal

C or N

'string' (in single quotes)

C or N

''hexadecimal, same length'' (in double quotes)

B or D

integer value (no punctuation)

B or D

''hexadecimal, same length'' (in double quotes)

Action:

Revise the logical expression so that the literal is expressed with the syntax appropriate for the element type with which it is compared.