When you need to initialize a field or variable to a hexadecimal value, you can code a hexadecimal literal in the following format:
►►─ X'digits' ────────────────────────────────────────────────────────────────►◄
Are a combination of valid hexadecimal digits (0—9, A—F) representing the value of a single byte. You must provide an even number of hexadecimal digits.
Since a hexadecimal literal must be contained on one source line in a Reporting Facility program, the maximum number of bytes to be represented in a single literal is 34.
The following table illustrates uses of hexadecimal literals:
|
Coded String |
Net Length |
Resultant Literal |
|---|---|---|
|
X'00' |
1 |
low-value |
Code hexadecimal literals only on Format 2 DEFINE or MOVE commands.
|
Copyright © 2014 CA.
All rights reserved.
|
|