Author |
Message
|
kimmyj |
Posted: Mon Aug 01, 2011 6:14 pm Post subject: File Transfer as text (from mainframe to unix)removes spaces |
|
|
 Novice
Joined: 26 Jun 2003 Posts: 19 Location: UK
|
Hi all
Facing a curious problem when doing a file transfer from the mainframe to a unix box. When we set the type=text then the spaces in the message get removed.
When we set the type=binary, this is preserved (but this doesn't fit our use case).
Just wondering if setting the source or destination encoding will fix this? Or if I need to raise a PMR. I understand type=text will do some conversion (but it should retain the white space - surely)?
Cheers
Kim |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 02, 2011 4:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
switch to SFTP.
FTP mode ascii (= text) will remove/convert *line endings*. It should not be altering whitespace between line endings. Unless those aren't actually white space, but are instead characters that get converted to things that look like line endings on the unix side.
encoding is usually for numbers, and coded character set id is usually for characters. I don't know if MQFTE uses that notion, however. |
|
Back to top |
|
 |
kimmyj |
Posted: Tue Aug 02, 2011 3:03 pm Post subject: |
|
|
 Novice
Joined: 26 Jun 2003 Posts: 19 Location: UK
|
Sorry - I should have been more clear - we are doing this transfer from an WMQFTE Agent on the mainframe to a WMQFTE Agent on a distributed platform. Using type=text.
SFTP/FTP is not in the picture.
Cheers |
|
Back to top |
|
 |
kimmyj |
Posted: Tue Oct 18, 2011 5:19 pm Post subject: |
|
|
 Novice
Joined: 26 Jun 2003 Posts: 19 Location: UK
|
I heard it is going to be an option in the latest fix pack (7.0.1.5).
So will have to wait for this.
It's only the trailing white space that is the issue. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Oct 18, 2011 8:06 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
kimmyj wrote: |
I heard it is going to be an option in the latest fix pack (7.0.1.5).
So will have to wait for this.
It's only the trailing white space that is the issue. |
AFAIK FTP text mode will also drop trailing spaces...
What is your problem? You are not dealing with SAP IDOCs are you?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|