Posted: Tue Mar 19, 2013 1:47 am Post subject: DFDL parsing Cobol fixed width message
Newbie
Joined: 19 Mar 2013 Posts: 2
Hi,
I'm using WMB 8.0.0.1 and I'm working on a flow to translate a Cobol fixed width message to XML. I have used the message model wizard to import the Cobol copybook into the toolkit and with a file input node I'm parsing this in using DFDL. However, when a pass a sample file through I get a parsing error:
Text:CHARACTER:CTDP3002E: Unexpected data found at offset '433' after parsing completed. Data: '0x1A...'.
It's not visible from the above but there is another character on the following line which is value 0x1a. I have been struggling with trying to set this value as a terminator in the DFDL message. Has anyone encountered this as an issue and coded around it?
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
Don't use the debugger.
Take a user trace. The DFDL parser will show a lot more information this way. Then post it here so that experts such as Kimbert can help you understand what is going on. _________________ 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.
That 0x1A is an end-of-file marker. You should set the terminator using the DFDL raw byte entity "%#r1A;" ( do not include the quote characters! )
which means 'a literal byte with the value 0x1A'.
You could also use a character entity such as %SUB; but I think that would be less reliable in this case because end-of-file markers seem to be used differently by different applications.
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