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 » Issue with AsBitstream

Post new topic  Reply to topic
 Issue with AsBitstream « View previous topic :: View next topic » 
Author Message
mayur2378
PostPosted: Mon Aug 22, 2005 12:59 pm    Post subject: Issue with AsBitstream Reply with quote

Apprentice

Joined: 26 May 2004
Posts: 47

Heres a Sample Code
Code:

Set Environment.Variables.MBI_SUBSCRIBER.IB_RECORD_ID='IB';
Set Environment.Variables.MBI_SUBSCRIBER.IB_Employee_ID='ABC';

Set OutputRoot.MRM.TEST=Cast (ASBISTREAM(Environment.Variables.MBI_Subscriber) as char ccsid 1208 ENCODING MQENC_NATIVE);


The Result i get is a Blank for the OutPutRoot.MRM.TEST. I am kinda confused here and dont know where i am goin wrong.

Any Inputs on this !!!
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Aug 22, 2005 1:03 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Correct me if I'm wrong, but Environment.Variables.MBI_SUBSCRIBER is a different field than Environment.Variables.MBI_Subscriber.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mayur2378
PostPosted: Mon Aug 22, 2005 1:06 pm    Post subject: Reply with quote

Apprentice

Joined: 26 May 2004
Posts: 47

Quote:

Correct me if I'm wrong, but Environment.Variables.MBI_SUBSCRIBER is a different field than Environment.Variables.MBI_Subscriber

That was a Typo. Appologise for that. It is Environment.Variables.MBI_SUBSCRIBER
Back to top
View user's profile Send private message Yahoo Messenger
mgk
PostPosted: Mon Aug 22, 2005 2:08 pm    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi,

Your ASBISTREAM(Environment.Variables.MBI_Subscriber) will return NULL because the element MBI_Subscriber does not belong to a real parser (only a root parser) and so will not generate a bitstream. I believe you need to use CREATE with a DOMAIN clause to create a parser for your fields to belong to before you can ASBITSTREAM them. In the case you posted you could try a CASTing to a BLOB with a CCSID instead of ASBITSTREAM, although I guess your real code would be more complicated .

Regards.
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon Aug 22, 2005 5:32 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

This might throw some more light on your problem.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
mayur2378
PostPosted: Tue Aug 23, 2005 10:59 am    Post subject: Reply with quote

Apprentice

Joined: 26 May 2004
Posts: 47

Sorry for the late response,

Thankz Eddie, mgk. Your inputs helped a lot.

Mayur
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Issue with AsBitstream
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.