Specify four types of literals for the right side of the comparison:
|
Character |
Specify character literals for comparisons with any field except a COBOL data name defined as COMP or COMP‑3. Enter the literal as C'character data' , X' hexadecimal data', or a combination of both. For example, C'ABC', Xv0102',or C'ABC'X'0102'. |
|
Packed |
Specify packed decimal literals for comparisons only with COBOL data names defined as COMP‑3. Enter the literal as P'number'. The number can be preceded by a minus sign. For example, P'123' or P'‑123'. |
|
Halfword |
Specify halfword literals for comparisons with COBOL data names defined as COMP with a length of four, as in S9(4) COMP. Enter the literal as H'number'. The number can be preceded by a minus sign. For example, H'12' or H'‑12' |
|
Fullword |
Specify fullword literals for comparisons with COBOL data items defined as COMP with a length of eight, as in S9(8) COMP. Enter the literal as F'num'100' or F' ‑100'. |
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|