Pack Zone Conversion in Mode N/S/B/F/9

This section describes conversion rules when Pack Zone Conversion is one of the following:

  • Mode N

  • Mode S

  • Mode B

  • Mode F

  • Mode 9

The conversion rules are the same for sending-side conversion and receiving-side conversion.

In addition, the conversion rules are the same regardless of the type of host on which code conversion is carried out.

Table 2.7 Format Conversion Rule 3a-1

Before Conversion

After Conversion

Pack Zone Conversion

Mode N

Mode S

Mode B

Mode F

Mode 9

Field
Type

Byte Count

Field
Type

Byte Count

Field
Type

Byte Count

Field
Type

Byte Count

Field
Type

Byte Count

P

Signed Internal Decimal

1–2

Same as before conversion (*1)

Same as before conversion

Binary

2

Floating Point

4

Unsigned External Decimal

(*2)

3–5

4

4

6–10

8

8

S

Signed External Decimal

1–4

Same as before conversion (*1)

Same as before conversion

Binary

2

Floating Point

4

Unsigned External Decimal

Same as before conversion

5–9

4

4

10–18

8

8

*1

:

Only the sign part is converted for 'Mode S.'

*2

:

The significant digit of signed internal decimal (not including sign part) is from one to 18 digits. If you convert signed internal decimal into unsigned external decimal with 'Mode 9,' the byte count after conversion is the same as the digit number before conversion. The tables of the digit number before conversion and the byte count after conversion are shown below:

Table 2.8 Conversion Rules of Signed Internal Decimals with 'Mode 9'

Before Conversion

After Conversion

Signed Internal Decimal

Unsigned External Decimal

Number of Digits

Byte Count

Byte Count

1

1

1

2

2

3

3

4

3

5

5

6

4

7

7

8

5

9

9

10

6

11

11

12

7

13

13

14

8

15

15

16

9

17

17

18

10

18