ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DFDL parser - getting weird character

Post new topic  Reply to topic
 DFDL parser - getting weird character « View previous topic :: View next topic » 
Author Message
agrawalamit166
PostPosted: Fri Sep 09, 2016 3:53 pm    Post subject: DFDL parser - getting weird character Reply with quote

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:
Code:
PIC X(200)


IIB 9.0.0.4
Please help here.
Back to top
View user's profile Send private message Yahoo Messenger
smdavies99
PostPosted: Fri Sep 09, 2016 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
timber
PostPosted: Sun Sep 11, 2016 1:08 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

@agrawalamit166: Please ask your question on the original thread ( http://www.mqseries.net/phpBB2/viewtopic.php?t=72929 ), or else explain why this is a different question.
Back to top
View user's profile Send private message
agrawalamit166
PostPosted: Mon Sep 12, 2016 7:47 am    Post subject: Reply with quote

Voyager

Joined: 17 Aug 2009
Posts: 78
Location: NY, US

Quote:
Please ask your question on the original thread ( http://www.mqseries.net/phpBB2/viewtopic.php?t=72929 ), or else explain why this is a different question.[/code]

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
View user's profile Send private message Yahoo Messenger
shanson
PostPosted: Mon Sep 12, 2016 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DFDL parser - getting weird character
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.