Author |
Message
|
agrawalamit166 |
Posted: Fri Sep 09, 2016 3:53 pm Post subject: DFDL parser - getting weird character |
|
|
 Voyager
Joined: 17 Aug 2009 Posts: 78 Location: NY, US
|
I define DFDL format
Code: |
<dfdl:format binaryFloatRep="{$dfdl:binaryFloatRep}" byteOrder="{$dfdl:byteOrder}" encoding="{$dfdl:encoding}" ignoreCase="yes" leadingSkip="0" occursCountKind="fixed" ref="dfdlCobolFmt:CobolDataFormat" textNumberPadCharacter="0" textStringJustification="left" textStringPadCharacter="%#r00;" textZonedSignStyle="asciiStandard" trailingSkip="0" useNilForDefault="no"/> |
and at field level
Code: |
dfdl:nilKind="literalCharacter" dfdl:nilValue="%SP; " |
But this configuration does not work for one field only. It parses the message, but that field shows character followed by square images.
Fields in COBOL copy book:
IIB 9.0.0.4
Please help here. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Sep 09, 2016 9:32 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
What tool are you using to view the 'square images'?
It might be better to look at the underlying HEX value of the character.
If you look at BOTH the input in HEX and the output in HEX you may well see that the data is correct.
It is not unheard of for some applications to be unable to display data correctly. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
timber |
Posted: Sun Sep 11, 2016 1:08 pm Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
|
Back to top |
|
 |
agrawalamit166 |
Posted: Mon Sep 12, 2016 7:47 am Post subject: |
|
|
 Voyager
Joined: 17 Aug 2009 Posts: 78 Location: NY, US
|
No, this one differs from that, because there I was talking about null value only.
here data is not null. I am getting data with some square images. I am not sure how can I upload an image here to show you exact message message format.
Quote: |
What tool are you using to view the 'square images'? |
I am seeing images at Toolkit, while debugging message flow. |
|
Back to top |
|
 |
shanson |
Posted: Mon Sep 12, 2016 7:59 am Post subject: |
|
|
 Partisan
Joined: 17 Oct 2003 Posts: 344 Location: IBM Hursley
|
The DFDL editor test parse/serialize views in the IIB toolkit let you see the hex. On the toolbar for those views, click on the upside-down triangle symbol and select 'Show hex'. |
|
Back to top |
|
 |
|