ITOM function

Function

ITOM{BASE}

This function converts type I data to type M character data. If the field type of the input data is not type I, the function results in an error at the time of conversion.

Parameters

BASE

Specify the character data format to convert the input data to. The table below provides the values of available formats. (This parameter cannot be omitted.)

Table A.9 Values that can be used for the ITOM function

BASE

Post-conversion data format

Post-conversion size (bytes)

2

Converts to a binary character string

8

o

Converts to an octal character string

3

d

Converts to a decimal character string

3

x

Converts to a hexadecimal character string.

Use lowercase letters for alphabets.

2

X

Converts to a hexadecimal character string.

Use uppercase letters for alphabets.

2

Example

1. Converting type I data to a binary character string

Figure A.9 Example of using the ITOM function (1)

2. Converting type I data to a decimal character string

Figure A.10 Example of using the ITOM function (2)