Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

SYNCSORT :: RE: Amount field is getting corrupted when Using "LTOU"

$
0
0
Author: Robert Sample
Posted: Tue Oct 18, 2016 8:40 pm (GMT 5.5)

Well, the system did EXACTLY what you told it to do. The X'89' is a lower case I, and it got converted to an upper case I (x'C9') just as it was supposed to. The fact that the lower case I was in the middle of a packed decimal field didn't matter since you told the system to convert the entire record.

When you have binary or packed decimal fields in your record, you MUST convert each character field individually -- or you will have problems with inappropriate translations (as you have seen).
_________________
TANSTAAFL

The first rule of code reuse is that the code needs to be worth re-using.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth


Viewing all articles
Browse latest Browse all 8500

Trending Articles