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.
Before Conversion |
After Conversion |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Pack Zone Conversion |
||||||||||
Mode N Mode S |
Mode B |
Mode F |
Mode 9 |
|||||||
Field |
Byte Count |
Field |
Byte Count |
Field |
Byte Count |
Field |
Byte Count |
Field |
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:
|