Re: FTP GET from MVS, using Win2000 server

From: Alun Jones [MSFT] (alunj_at_online.microsoft.com)
Date: 06/25/04


Date: Fri, 25 Jun 2004 13:38:58 -0700


"SonOfMog" <sonofmog@hotmail.com> wrote in message
news:36d4d553.0406251215.24c050e4@posting.google.com...
> I want to perform a get from MVS.
> The FTP server is Win2000 server.
> The files are ascii text and need to be converted into ebcdic.
> The option 'ASCII' in ftp works, but the resulting file contains invalid
> characters. Also, every character is preceeded by a blank.

That sounds more like your file is in Unicode text, not ASCII text.

For instance, a hex dump of the first few bytes of a big-endian Unicode text
file containing the word "flugelhorn" is as follows:

13EA:0100 FE FF 00 66 00 6C 00 75-00 67 00 65 00 6C 00 68
...f.l.u.g.e.l.h

And here's the same file, saved as little-endian Unicode:

13EA:0100 FF FE 66 00 6C 00 75 00-67 00 65 00 6C 00 68 00
..f.l.u.g.e.l.h.

For variety, here's what happens when I save it as UTF-8:

13EA:0100 EF BB BF 66 6C 75 67 65-6C 68 6F 72 6E ...flugelhorn

And now, as ANSI:

13EA:0100 66 6C 75 67 65 6C 68 6F-72 6E flugelhorn

> Someone have an idea how to set a correct transfer?
> I know that a PUT from Windows works fine, but I do want to perform a get
from MVS.

First, verify that the file you are trying to retrieve is purely ASCII.

Do you have a hex editor or some other tool you could use on the Windows
machine to look at the contents of the original file?

Alun.
~~~~



Relevant Pages

  • FTP GET from MVS, using Win2000 server
    ... The FTP server is Win2000 server. ... The files are ascii text and need to be converted into ebcdic. ... characters. ... I know that a PUT from Windows works fine, but I do want to perform a get from MVS. ...
    (microsoft.public.inetserver.iis.ftp)
  • FTP from UNIX to AS400
    ... ASCII from UNIX to AS400 ftp server: ... Error [426-Records written to file FILE1 in library QGPL have been ...
    (comp.sys.ibm.as400.misc)
  • EXTRA! X-treme 9.0 FTP download results in no ASCII translation
    ... tried to get a file from z/OS 1.7 FTP server to my pc using ... Attachemate EXTRA! ... X-treme V9.0. ... translated to ASCII. ...
    (bit.listserv.ibm-main)
  • Re: CFile::Read problem ???
    ... As far as the C compiler is concerned, ... you can pretty much always assign a char ... as ASCII and wchar_t as Unicode. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Opening a text file that may be ASCII *or* Unicode
    ... It could well be ASCII empty -- no bytes.) ... UTF & BOM ... Positively Must Know About Unicode and Character Sets ... > regards, Andy ...
    (microsoft.public.scripting.vbscript)