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 » Remove Null characters from COBOL message

Post new topic  Reply to topic
 Remove Null characters from COBOL message « View previous topic :: View next topic » 
Author Message
Tanesh
PostPosted: Thu Jan 21, 2010 9:52 pm    Post subject: Remove Null characters from COBOL message Reply with quote

Newbie

Joined: 29 Jun 2009
Posts: 8

Hi,

We are using MB 6.1.0.4 and we have message flow like this -

MQInput --> Compute ---> MQOutput

We get input COBOL message and transform it into XML and put into another queue.

We have COBOL copybook of Level 01, from which we have created the message set. We used MRM domain to parse incoming COBOL message.

Now the incoming COBOL message contains NULL characters
(unicode x00) in couple of fields and we want to get these characters removed by parser itself so that we do not need to handle such NULL chars in ESQL code.

We explored a little bit on message set and we found out one option while importing COBOL copybook into message set. This option was -

Create null values for all fields

We need to set four options when we enable this option as SPACE, NUL, 0x00 or 0xFF.

I went through MB Infocenter documentation, and as per my understanding, this option should remove NULL chars from incoming message and substitute it with one of the four above options which we set.

We tried all four options one by one to see how incoing NULL chars got removed with one of these four options but none of them worked.

Is there anybody who can help us to resolve this issue ?

Thanks,
Tanesh.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 22, 2010 2:46 pm    Post subject: Reply with quote

Grand High Poobah

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

The option makes more sense on an outgoing message.
On an incoming message you need to set the option to what the MF is sending.
Be careful, the MF may not initialize all fields (i.e. filler) and you may well get junk that the parser cannot interpret. Make sure the MF initializes the values in the CopyBook before sending the record to MQ.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Mon Jan 25, 2010 2:30 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Now the incoming COBOL message contains NULL characters
(unicode x00) in couple of fields and we want to get these characters removed by parser itself so that we do not need to handle such NULL chars in ESQL code.
Are the NULL characters included within the character value of these fields, or are the fields entirely composed of NULLs?
In other words, are you trying to
a) detect fields which are NULL-valued, or
b) fields which contain NULL characters
Quote:
I went through MB Infocenter documentation, and as per my understanding, this option should remove NULL chars from incoming message and substitute it with one of the four above options which we set.
Can you quote the infocenter topic where it says that?
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 » Remove Null characters from COBOL message
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.