Hexadecimal constant—Data extract expressions


Hexadecimal constants are generally used in simple, single term expressions where you have a requirement to output a hexadecimal value. There is no particular advantage to specifying hexadecimal constants in arithmetic expressions since they are converted to packed decimal in order to complete the operation. They might be useful in relational expressions.

The following rules apply for hexadecimal constants:

  • A hexadecimal constant is coded as X'constantValue', where constantValue is a string of 1 to 32 hexadecimal characters (0-9, A-F, or a-f).
  • The maximum length of a hexadecimal constant is 32 hexadecimal characters (16 bytes) when used in a simple or relational expression. If a hexadecimal constant is used as a term in an arithmetic expression, it cannot exceed eight hexadecimal characters in length (4 bytes).
Information
Example
X'C0AB98EF'
X'FF'
X'123'

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Online Reorg for IMS 5.2