When you code a CA Datacom/DB Reporting Facility program, you may need to establish a constant value by coding an alphanumeric literal. An alphanumeric literal can contain any character defined in the Reporting Facility character set.
Enclose all alphanumeric literals within apostrophes. When apostrophes are included as part of the literal, they must be coded in pairs, each pair generating a single value in the resulting literal.
The Reporting Facility automatically calculates the net length of the literal. Literals are no longer than one line of source code. They cannot be continued to another line. For example, the maximum length of a single literal is 70 characters.
The following table illustrates some rules to follow in coding alphanumeric literals:
|
Coded String |
Net Length |
Precision |
|---|---|---|
|
'12345' |
5 |
12345 |
You can code alphanumeric literals on these commands:
|
CALL |
FILE |
OPTION |
|
Copyright © 2014 CA.
All rights reserved.
|
|