![]() ![]() |
|
MP ConversionMP codes convert packed decimals to unpacked decimal representation for output or decimal values to packed decimals for input.
SYNTAXMP
NOTESThe MP code most often used as an output conversion. On input, the MP processor combines pairs of 8-bit ASCII digits into single 8-bit digits as follows:
When displaying packed decimal data, you should always use an MP or MX code. Raw packed data is almost certain to contain control codes that will upset the operation of most terminals and printers.
INPUT CONVERSIONInput conversion is valid. Generally, for selection processing you should specify MP codes in field 7 of the data definition record.
EXAMPLES
yields 0x D01234
yields -01234 |