Field Length indicator in hexadecimal format

469 views
Skip to first unread message

Shashikala G H

unread,
Sep 20, 2013, 12:37:57 AM9/20/13
to jpos-...@googlegroups.com
Hi,

I have used GenericPackager("basic.xml") and the data elements(DE) 2,3,4,11  for packing the message.

 basic.xml
<isofield id="2" length="19" name="PAN - PRIMARY ACCOUNT NUMBER"
class="org.jpos.iso.IFB_LLNUM" pad="true" />
<isofield id="3" length="6" name="PROCESSING CODE" class="org.jpos.iso.IFB_NUMERIC" />
<isofield id="4" length="12" name="AMOUNT, TRANSACTION" class="org.jpos.iso.IFB_NUMERIC" pad="true" />
<isofield id="11" length="6" name="SYSTEM TRACE AUDIT NUMBER"
class="org.jpos.iso.IFB_NUMERIC" />

packed Message :  030070200000000000001906006491286999941570910000000000002500094430

MTI : 0300
BITMap : 7020000000000000
Field 2 -PAN :1906006491286999941570 (with length indicator)
Field 3 -PROCESSING CODE : 910000
Field 4 -AMOUNT :000000002500
Field 11 -STAN : 094430

Field 2 is variable length BCD  field having the data format as 1 B + up to 19 BCD.

Observed  : 1906006491286999941570 
Expected : 1306006491286999941570(length indicator in Hexadecimal)

How can we get the length indicator in hexadecimal format?

Thanks,
Shashi



kapilashantha rajapaksha

unread,
Sep 20, 2013, 1:47:41 AM9/20/13
to jpos-...@googlegroups.com
hi,

simply you can do it using your xml .

  <isofield
      id="2"
      length="19"
      name="PAN - PRIMARY ACCOUNT NUMBER"
      pad="false"
      class="org.jpos.iso.IFB_LLHUM"/>

Hope helpful



--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org
 
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
 
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mark Salter

unread,
Sep 20, 2013, 1:57:34 AM9/20/13
to jpos-...@googlegroups.com
On 20/09/2013 06:47, kapilashantha rajapaksha wrote:
> * class="org.jpos.iso.IFB_LLHUM"/>*

I'll name that tune in one!

:-)

IFB_LLHNUM should be good.

--
Mark

kapilashantha rajapaksha

unread,
Sep 20, 2013, 2:03:36 AM9/20/13
to jpos-...@googlegroups.com
tq


Shashikala G H

unread,
Sep 20, 2013, 3:25:57 AM9/20/13
to jpos-...@googlegroups.com

Thank you..!
I'm able to pack the message now.

Thanks 
Shashi

Deniz Oğlakcıoğlu

unread,
Nov 21, 2013, 3:53:58 PM11/21/13
to jpos-...@googlegroups.com


Hi,

 custom.xml
<isofield
      id="35"
      length="37"
      name="TRACK 2 DATA"
      class="org.jpos.iso.IFB_LLBINARY"/> 

Field 35 Message :  5124461069712150D1506226068770406F

Result of 35 hex:
 
Field 35  :175124461069712150D1506226068770406F (with length indicator)


Field 35 is variable length BCD  field having the data format as1 Byte(LL-BCD) Len+Data

Observed  : 175124461069712150D1506226068770406F
Expected : 345124461069712150D1506226068770406F

How can we get the length indicator in bcd format?

Thanks,
Deniz



Alejandro Revilla

unread,
Nov 21, 2013, 4:06:50 PM11/21/13
to jPOS Users

org.jpos.iso.IFB_LLHEX is your friend.

Good luck!


--
@apr



--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
 

 
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.

Deniz Oğlakcıoğlu

unread,
Nov 22, 2013, 5:22:03 AM11/22/13
to jpos-...@googlegroups.com
Thank you very much :)


2013/11/21 Alejandro Revilla <a...@jpos.org>
You received this message because you are subscribed to a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/wvv3CIemWDI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3DndrdGsgzpp1zcTyNaGAGrTYVsHXXhWu76mo3AmeJpBXg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages