Data Definition Language (DDL) Reference Manual
Named Constants
Data Definition Language (DDL) Reference Manual—529431-004
4-4
Product Version Constants
Product Version Constants
When specifying product version constants:
•
You can use a product version constant only in the VERSION clause of a TOKEN-
MAP statement, in the VALUE clause of a DEFINITION statement, or in the 
VALUE clause of a CONSTANT statement.
°
When a VALUE clause in a DEFINITION or CONSTANT statement includes a 
product version constant, the DDL compiler treats the product version constant 
as a BINARY 16 integer type.
°
When a VERSION clause in a TOKEN-MAP statement includes a product 
version number, the SPI product version compatibility mechanism uses the 
product version number to identify the structure of a particular product version 
of an extensible structured token.
•
When generating output from a product version constant for host-language source 
code, the DDL compiler converts the product version string from the form ann to 
the numeric representation of a product version number returned by the 
TOSVERSION Guardian procedure.
You can compare product version numbers without decoding them.
To “decode” a product version number:
1. Obtain the letter of the product version by dividing the product version number by 
256. The quotient is the ASCII decimal representation of the uppercase letter. Any 
remainder is ignored.
2. Obtain the number of the product version by multiplying the quotient from Step 1 
by 256 and subtracting the answer from the product version number.
For example, for product version number 17162:
1. 17162 divided by 256 = 67.04
2. 67 is the ASCII decimal representation for the letter C
3. 67 multiplied by 256 = 17152, and 17162 - 17152 = 10
4. C10 is the product version










