Author |
Message
|
phanish |
Posted: Mon Mar 17, 2014 10:42 pm Post subject: Issues while handling EBCDIC data in DP |
|
|
 Apprentice
Joined: 04 May 2013 Posts: 30
|
Hi
I am seeing an issue while posting the request to queue as ebcdic data.
I am receiving the request in EBCDIC format in datapower,to that I only need to add RFH in xsl to send the data to queue. and the data should go to queue in EBCDIC format only,which is not happening. I tried various encoding standards and tried mapping the input directly to output in the results action.
I tried wrapping the request as xml and then used the below encoding in the xsl to convert it as ebcdic.
Code: |
<xsl:output method="text" encoding="ebcdic"/> |
all these I tried didn't work, could anyone please advise me wherein I am doing it wrong. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Mar 18, 2014 12:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Why do you need an RFH header when sending to a Mainframe?
You are probably setting the next segments CCSID on the RFH to the wrong value...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
phanish |
Posted: Tue Mar 18, 2014 1:05 am Post subject: |
|
|
 Apprentice
Joined: 04 May 2013 Posts: 30
|
I am sending message to the queue with RFH set so that MB flow process the message. |
|
Back to top |
|
 |
zpat |
Posted: Tue Mar 18, 2014 1:37 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Of course you don't need a RFH header for the broker to process a message either.
Just ensure the MQMD.CCSID is set to the correct codepage value (such as 500 or 285 or 37) to match the data in the message. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
phanish |
Posted: Tue Mar 18, 2014 3:14 am Post subject: |
|
|
 Apprentice
Joined: 04 May 2013 Posts: 30
|
thank you zpat or saper,
I set the Convert Input property of QueueManager Object to off. it's working now. is there any better way to achieve this? |
|
Back to top |
|
 |
zpat |
Posted: Tue Mar 18, 2014 3:17 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Yes, make sure the message is valid for conversion.
MQMD.Format = MQSTR
MQMD.CCSID = a value to correctly describe the data (e.g. 500). _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
|