IBM InfoSphere DataStage, Version 11.3.1
DTX function
Syntax
DTX (number [ ,size] )
Description
Use the DTX function to convert a decimal integer to its hexadecimal equivalent.
size indicates the minimum size which the hexadecimal character string should have. This field is supplemented with zeros if appropriate.
If number evaluates to the null value, null is returned. If size is the null value, the DTX function fails and the program terminates with a run-time error message.
Example
X = 25
Y = DTX (X)
PRINT Y
Y = DTX (X,4)
PRINT Y
END
This is the program output:
19
0019