Author: thesumitk
Subject: Amount field is getting corrupted when Using "LTOU"
Posted: Tue Oct 18, 2016 8:20 pm (GMT 5.5)
Hi All,
I am converting an entire file form Lower to uppercase thru below sort card
This file has many fields defined as Binary,Packed Decimal and so on .. I want to convert an alphanumeric value in the file I don't know where it appears and whether it is upper or lower.. So planned to Convert the entire file . after converting I am getting below scenario
Some Amount fields Which are defined as COMP-3 are corrupted and not displayed as ********* in file manager when mapped with copybook.
Before conversion
Can we rectify this issue or can we check the lower case and if found then convert it to upper .
Any Help is Much Appreciated. Many Thanks in Advance.
Sumit
_________________
Sumit
Subject: Amount field is getting corrupted when Using "LTOU"
Posted: Tue Oct 18, 2016 8:20 pm (GMT 5.5)
Hi All,
I am converting an entire file form Lower to uppercase thru below sort card
Code: |
SORT FIELDS=(1,7,CH,A) OUTREC OVERLAY=(1:1,1600,TRAN=LTOU) |
This file has many fields defined as Binary,Packed Decimal and so on .. I want to convert an alphanumeric value in the file I don't know where it appears and whether it is upper or lower.. So planned to Convert the entire file . after converting I am getting below scenario
Some Amount fields Which are defined as COMP-3 are corrupted and not displayed as ********* in file manager when mapped with copybook.
Code: |
Converted Field #186 PD 1035:5 <---+----1> *********** ----> This is Display Value 46C02 -----> These 2 lines are the HEX Value 5791C |
Before conversion
Code: |
FIELD #186 PD 1035:5 <---+----1> 4567890.12 ----> This is Display Value 46802 These 2 lines are the HEX Value 5791C |
Can we rectify this issue or can we check the lower case and if found then convert it to upper .
Any Help is Much Appreciated. Many Thanks in Advance.
Sumit
_________________
Sumit