Reputation: 73
i have 3 fields 60, 61 and 63. The length is in hex and content in ebcdic format. So i used LLHECHAR and LLLHECHAR depending on the length. The issue is for field 60 (LLHECHAR) length is read correctly and value is passed without issues. But for 61 and 63 where I use LLLHECHAR (as the length is 3 digits) length is passsed as "00 05" or something like that. So when it comes to 61, the length is read as zero and no value is read. And the length and value of 61 is assigned to 63.
F3 F8 F1 F0 10 F0 F0 F0 F0 F0 F0 F0 F0 4E F0 F0
00e0 F0 E4 C1 C5 F1 00 15 F0 F0 F0 F0 F0 F0 F0 F0 F0
00f0 F8 F3 F7 F8 F4 F9 F9 F9 F9 F9 F9 F9 00 0F F0 F0
0100 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0
<isofield
id="60"
length="16"
name="Additional Data"
class="org.jpos.iso.IFB_LLHECHAR"/>
<isofield
id="61"
length="999"
name="RESERVED PRIVATE"
class="org.jpos.iso.IFB_LLLHECHAR"/>
<isofield
id="62"
length="999"
name="RESERVED PRIVATE"
class="org.jpos.iso.IFB_LLLCHAR"/>
<isofield
id="63"
length="999"
name="RESERVED PRIVATE"
class="org.jpos.iso.IFB_LLLHECHAR"/>
output is some thing like, which is wrong.
60 <10>
60 <xxxxxxxxxx>
61 <00>
61 <>
63 <15>
63 <xxxxxxxxxxxxxxx>
Upvotes: 0
Views: 36