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 » Ascii char []Input as PARSER

Post new topic  Reply to topic
 Ascii char []Input as PARSER « View previous topic :: View next topic » 
Author Message
amiivas
PostPosted: Fri Dec 07, 2007 12:16 am    Post subject: Ascii char []Input as PARSER Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 44
Location: Texas, USA

Hi,
I am trying to process a input in which the data is parsed with '|' char. But there are Ascii char [] between the pipes, which is getting mismatched while goiing in a message set.
Kindly help me along to get rid of this Char.
Is it a group seperator kind of thing or smth else.
A part of input file:
JOB|CUSTOMER|A|20071205|000000|411004|
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
||MAS|998775||CUSTOMER|213421267||CUSTOMER|JOB2134233|||||CUSTOMER|234242444|ASD|DELETE|||||||N|ACWERER||||F|||+409|W||||||||||||


Thanks in advance,
AMIT
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 07, 2007 3:06 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

We have no idea what this character is.

In ascii, this is the represention of any one of several "non-printable" characters.

So it could be a lot of things, including a line ending character or etc.

Presumably the documentation on your data format will tell you what it should be.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 07, 2007 3:33 am    Post subject: Reply with quote

Grand High Poobah

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

If the original format was UTF-8 it might be the representation of a 'special' character that is not printable in ASCII. It might even have clobbered the special character.

Keep the input in the original char set....

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
amiivas
PostPosted: Mon Dec 10, 2007 1:27 am    Post subject: Problem revised Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 44
Location: Texas, USA

Thanks all for your replies,
After considering the input that ascii char doesn't creates any problem but now the real problem is that my messageset is not able to recognize a next line char. A ascii char corresponding to the next line char (line feed char) sits at the end of any particular group of input. For eg if the name and address is diffrentiated by a new line then we get a new line char at the beginning of the address field in message set.
I have tried using <CR><LF> but still it is not working.
one possible sol. was to give a dummy vacant field at the end of name tag to make the matching of the address but that is not correct in my sense.
Could be ther any possible sol. for this?[/b]
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Dec 10, 2007 8:00 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Do you have a document that describes, in a logical way, the data format you are trying to model?

Does that document specify what "line endings" should be used - whether a <cr><lf> should be used, a <lf> should be used, or whether the sending platform gets to decide?

Do you have any idea if the data you are receiving is correct for the format? Maybe you are supposed to be failing to parse this data.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 10, 2007 1:18 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Could be ther any possible sol. for this?
There is a solution. But you will need to provide a lot more information if you want us to find that solution.
Please describe the problem using an example. Describe what the message tree should look like after a successful parse. Give an example of a message which parses successfully, and also one which fails.
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 » Ascii char []Input as PARSER
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.