Fixed binary constant—Data extract expressions


Fixed binary constants are generally used in simple, single term expressions where you have a requirement to output a fixed binary value. There is no particular advantage to specifying fixed binary 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 fixed binary constants:

  • A fixed binary constant is coded as F'constantValue', where constantValue is a string of 1 to 10 decimal digits, optionally preceded by a plus (+) or minus (-) sign. If no sign is coded, the value is positive.
  • Fixed binary constants are always stored internally as a full-word (4 bytes).
  • The value of the constant must be in the range -2,147,483,648 to 2,147,483,647.
  • The maximum length of a fixed binary constant is 10 decimal digits.
Information
Example
F'999'
F'-2147483648'
F'+8'

 

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

BMC AMI Online Reorg for IMS 5.2