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 » FileInput node with ASCII enabled IIB9

Post new topic  Reply to topic
 FileInput node with ASCII enabled IIB9 « View previous topic :: View next topic » 
Author Message
deecee
PostPosted: Wed Mar 23, 2016 11:44 am    Post subject: FileInput node with ASCII enabled IIB9 Reply with quote

Acolyte

Joined: 11 Sep 2014
Posts: 51

Hello,

The scenario I have in IIB 9 is,
Fileinput -> compute -> httprequest

The input file is a SOD file from legacy which needs ASCII transfer mode.
I have created a DFDL file for parsing the SOD file.

This scenario works fine in IIB 10.

But as my production system is in IIB 9, when I move the same scenario to IIB 9, it fails with parsing errors.

As the DFDL contains discriminators and it wasn't getting parsed initially, I changed the parse timing to Complete and tried the same scenario with a file that I could pick using Binary transfer mode and it worked fine.

So the issue is only coming with ASCII mode transfer.

How do I solve this issue?
Back to top
View user's profile Send private message
timber
PostPosted: Wed Mar 23, 2016 1:05 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Quote:
How do I solve this issue?
Well, quoting the error message would be a good start. That way, we would have at least some chance of understanding what is going wrong

In DFDL, you can declare what character encoding you want to use. What value of dfdl:encoding does your DFDL model use?

Finally, please explain more clearly why you changed Parse Timing to Complete. That should have exactly zero effect on parser behaviour ( except to delay parsing until it is unavoidable ).
Back to top
View user's profile Send private message
deecee
PostPosted: Thu Mar 24, 2016 6:20 am    Post subject: Reply with quote

Acolyte

Joined: 11 Sep 2014
Posts: 51

the error i get,

Quote:
An error occurred in parser ''Root'' while parsing the field named ''DFDL'' on behalf of the node or component '.File Input'. The data being parsed was ''Stream Based Page Buffer [0,23644]


dfdl encoding, UTF-8

I set parsing to complete, because I saw in one of the threads how IIB9 DFDL has a bug in parsing complex DFDL's which involve discriminators. And it was failing for me in IIB9 while it was perfectly working in IIB10.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Mar 24, 2016 6:49 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

There is a world of difference between ASCII and UTF-8

ASCII (American Society for Compute Information Interchange) was mostly 7-bit (1 + parity bit) and is this a mere dot in the ocean when it comes to the range of charaters usable in UTF-8.

Do you really mean ASCII? It is so... well 1970's or early 1980's. It was superceded by ISO-8859-x range of character sets in the 1980's which in turn gave way to UTF as the preferred encoding for non EBICIDIC data.

Just interested to know why something is demanding ASCII these days.
_________________
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
deecee
PostPosted: Thu Mar 24, 2016 7:18 am    Post subject: Reply with quote

Acolyte

Joined: 11 Sep 2014
Posts: 51

smdavies99

The file is coming from legacy, may be that's why , i am not sure.

Would the encoding value in the DFDL setting make the difference in this case?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 24, 2016 8:07 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

deecee wrote:
smdavies99

The file is coming from legacy, may be that's why , i am not sure.

Would the encoding value in the DFDL setting make the difference in this case?

You can check with the testing view of the DFDL perspective...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
timber
PostPosted: Thu Mar 24, 2016 12:52 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

smdavies99 said:
Quote:
Just interested to know why something is demanding ASCII these days
I agree that it doesn't make a lot of sense technically, but there are dozens of legacy data formats that require ASCII. ISO8583 and HL7, to name a couple. And they're not minority sports either. One is a major financial data format, the other one is widely used in most hospitals in developed countries.

deecee said:
Quote:
Would the encoding value in the DFDL setting make the difference in this case?
You have asked DFDL to read your data. Does it matter if you tell DFDL to use the wrong character encoding?
Have you not read this excellent article? The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
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 » FileInput node with ASCII enabled IIB9
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.