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 IndexWebSphere Message Broker (ACE) SupportASCII transfer

Post new topicReply to topic
ASCII transfer View previous topic :: View next topic
Author Message
Zappa
PostPosted: Fri Jun 01, 2012 4:40 am Post subject: ASCII transfer Reply with quote

Acolyte

Joined: 06 Oct 2005
Posts: 55
Location: UK

Hopefully this isn’t a double post, there are similar but not my scenario.
I have a WMB 6.1 flow with a fileinput attached to a fileoutput and doing an ASCII ftp from Windows to Unix.
I do a chcp on windows and 850 is displayed. On AIX the LC_ALL is set to C
But the transferred file doesn’t have all characters converted correctly i.e. a “£” will become a “?”
A little guidance would be greatly appreciated.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jun 01, 2012 4:48 am Post subject: Re: ASCII transfer Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Zappa wrote:
A little guidance would be greatly appreciated.


What code page does LC_ALL=C force AIX to use? Seriously, I don't know but I don't see any immediate reason why that locale would use a code page which matches Windows 850. And clearly it doesn't, or this would be working.

What code page is the output message sent in by the FileOutput node? Is it just inheriting the input code page or does the flow make some kind of choice based on destination? I'm assuming there's more to your flow that the 2 nodes mentioned or it's a bit cumbersome just for an ftp
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Zappa
PostPosted: Fri Jun 01, 2012 5:07 am Post subject: Reply with quote

Acolyte

Joined: 06 Oct 2005
Posts: 55
Location: UK

"C" means US7ASCII , this implies that you can only display a-z, A-Z and 0-9 and nothing else.
Think I should change it to be en_US - maybe.
Is changing this something I should be wary of?
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jun 01, 2012 5:16 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Zappa wrote:
Think I should change it to be en_US - maybe.


Will a US locale force a code page with “£”? More likely to contain "$" I'd say.

Zappa wrote:
Is changing this something I should be wary of?


You're changing a globally used setting. I'd take your "wary" and raise you "cautious" with an option on "nervous". I'd be more inclined to find a code page installed on your AIX that supports the characters you need and have WMB use that for the output message.

Which would be 1 good reason to use WMB to do what looks like a simple ftp rather than just using ftp
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jun 01, 2012 5:26 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

So if you have a message flow that is FileInput->FileOutput, and both File nodes are doing FTPs on top of that, you have four places that the file contents could have their code page converted.
  1. FTP->FileInput
  2. FileInput->logical message tree
  3. logical message tree->FileOutput
  4. FileOutput->FTP


I believe the FileInput node archive directory contains the file after the FTP step but before it's read by FileInput, and likewise with the FileOutput mqsiarchive directory.

The only reason to be leery of altering LC_ALL is because you have other applications than Broker and MQ on the hardware and they are sensitive to it.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jun 01, 2012 5:30 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
The only reason to be leery of altering LC_ALL is because you have other applications than Broker and MQ on the hardware and they are sensitive to it.


Like whatever's processing the file after it's been ftp'd?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Zappa
PostPosted: Fri Jun 01, 2012 5:40 am Post subject: Reply with quote

Acolyte

Joined: 06 Oct 2005
Posts: 55
Location: UK

I will leave LC well alone and very glad that you’ve raised the level of my wariness as it certainly didn’t seem the right thing to do.
This flow is only a cumbersome test for verifying the correct code page I need to use but not sure where to start looking for it though.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jun 01, 2012 5:48 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Zappa wrote:
not sure where to start looking for it though.


I'd start with the sys admin for the AIX box
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportASCII transfer
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.