Posted: Mon Mar 05, 2007 6:34 pm Post subject: Broker property
Novice
Joined: 10 Jul 2006 Posts: 16
Hi all,
I need to insert a newline character in the output XML message. For this I first need to find out the system in which the broker is running and then do the casting of the hex value using the corresponding CCSID. I am using MB v6.
The operating system check is done because currently testing is done on local machines which run Windows but later on the Broker installed in AIX box will be used. The code is supposed to handle both the situations.
If the system in WINDOWS then CAST(x'0D0A' AS CHARACTER CCSID 437)
Else If it is AIX then CAST(x'0A' AS CHARACTER CCSID 819)
For determining the OS, I am using the broker property 'Family'.
Now I have two questions here :
1. Does the broker property 'Family' return AIX ?
2. Is the logic correct ?
Posted: Mon Mar 05, 2007 7:33 pm Post subject: Re: Broker property
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
saturn_cemk wrote:
I need to insert a newline character in the output XML message. For this I first need to find out the system in which the broker is running and then do the casting of the hex value using the corresponding CCSID. I am using MB v6.
This has nothing to do with the CCSID that the Broker is using.
Use the CCSID of the message you want to produce - what the value of OutputRoot.Properties.CodedCharSetID will be before you hit an MQOutput node - to decide whether to put <CR><LF> or just <LF>.
Or just always put in OA and deal with that on the windows system. _________________ I am *not* the model of the modern major general.
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