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 » General Discussion » tree to string

Post new topic  Reply to topic
 tree to string « View previous topic :: View next topic » 
Author Message
chaian
PostPosted: Thu Oct 09, 2003 10:23 am    Post subject: tree to string Reply with quote

Novice

Joined: 30 Sep 2003
Posts: 14
Location: Italy

I need to translate this tree:
(0x1000000)REC = (
(0x3000000)trec = 'I'
(0x3000000)codmvs = 'AAAAAAA'
(0x3000000)telaio = '11223344556677889'
(0x3000000)cliente = '00000010'
(0x3000000)fatprz = '0000013445000'
[...]
(0x3000000)przlist = '0000013445000'
(0x3000000)consdat = '20030911'
(0x3000000)marchio = '7'
(0x3000000)allest = ' '
(0x3000000)optional = 'VP=AAAAAAAAAAAAAA VAN=10002456 '
(0x3000000)filler = ' '


Into a string containing all subelements concatenated. This is a repeateble element (with no knowledge un numeber of repeats).
I used BITSTREAM (and ASBITSTREAM) functions. But I was able to build only an Hex string no a CHAR string.
Does anybody help?
Back to top
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Thu Oct 09, 2003 10:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If this is a question about WMQI, or WBIMB, then you should ask it usually in the WMQI forum.

But the answer is, you need to specify a CCSID to the ASBITSTREAM function. Then you will get a string of "native" characters, rather than a string of hex values.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
dgolding
PostPosted: Thu Oct 09, 2003 10:54 pm    Post subject: Reply with quote

Yatiri

Joined: 16 May 2001
Posts: 668
Location: Switzerland

Making trees into string? What about global warming
Back to top
View user's profile Send private message Visit poster's website
chaian
PostPosted: Thu Oct 09, 2003 11:34 pm    Post subject: Reply with quote

Novice

Joined: 30 Sep 2003
Posts: 14
Location: Italy

OK I used this func

SET msgBlob = ASBITSTREAM("InputRoot"."MRM"."REC",
InputRoot.MQMD.Encoding,
InputRoot.MQMD.CodedCharSetId,
'DSROGBO0KC001','L_SDIOF910','CWF',
FolderBitStream);

with:

SET str = CAST(msgBlob AS CHAR CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);

It works fine. But it puts a space character (X'20') at the end of the stream. Anybody knows why?
Moreover, where can I find docs about ASBITSTREAM func?
Thk
Back to top
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Fri Oct 10, 2003 5:53 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The docs for the ASBITSTREAM function are in the <WMQI install>/readme.txt after CSD03.
_________________
I am *not* the model of the modern major general.
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 » General Discussion » tree to string
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.