Thread View: comp.protocols.tcp-ip
3 messages
3 total messages
Started by Darius Cooper
Wed, 07 Oct 1998 00:00
ftp: ASCII to EBCDIC conversion
Author: Darius Cooper
Date: Wed, 07 Oct 1998 00:00
Date: Wed, 07 Oct 1998 00:00
19 lines
1337 bytes
1337 bytes
I realize this is not a strictly tcp/ip question, but I couldn't find a ftp newsgroup and figured the experts would be in this group: I want to transfer files from the PC to the mainframe using ftp. The transfer involves an ASCII to EBCDIC conversion. Most of the characters are translated correctly, but a few are not. Some characters that are not being translated correctly are: the caret sign, the square brackets, the thin vertical line (as distinct from the thick vertical "pipe" symbol). I repeated the ftp from AIX to the mainframe, using "type ascii" and "Type ebcdic", but the result was the same. I was wondering if there was any way to specify a translation table and then point ftp to that table. TIA, - Darius Cooper
Re: ftp: ASCII to EBCDIC conversion
Author: John Pashley
Date: Thu, 08 Oct 1998 00:00
Date: Thu, 08 Oct 1998 00:00
60 lines
2682 bytes
2682 bytes
Darius Cooper wrote: > > I realize this is not a strictly tcp/ip question, but I couldn't find a ftp > newsgroup and figured the experts would be in this group: > > I want to transfer files from the PC to the mainframe using ftp. > The transfer involves an ASCII to EBCDIC conversion. > Most of the characters are translated correctly, but a few are not. > Some characters that are not being translated correctly are: the caret sign, > the square brackets, the thin vertical line (as distinct from the thick > vertical "pipe" symbol). > > I repeated the ftp from AIX to the mainframe, using "type ascii" and "Type > ebcdic", but the result was the same. > > I was wondering if there was any way to specify a translation table and then > point ftp to that table. > > TIA, > > - Darius Cooper Assuming you are on MVS TCPIP 3.2:- Look in TCPIP.SEZTCPX (or whatever high level node your installation uses. We use SYS1.TCPIP). Create a new member 'DARIUS' (or whatever), copy the closest one (probably 'US') and fix it up. As far as I can tell, the translations you need are: symbol EBCDIC ASCII caret x'B0' x'5E' left square bracket x'BA' x'5B' right square bracket x'BB' x'5D' vertical line x'6A' x'7C' (I'm not sure if the last one is the one you are referring to, but its the only one I could find in both EBCDIC and ASCII.) Create a sequential dataset TCPIP.DARIUS.TCPXLBIN with the same attributes as TCPIP.STANDARD.TCPXLBIN (RECFM=F,BLKSIZE=256,LRECL=256) In TSO, execute the following command CONVXLAT 'TCPIP.SEZATCPX(DARIUS)' 'TCPIP.DARIUS.TCPXLBIN' Add a DD card to the FTP started task JCL //DARIUS DD DSN=TCPIP.DARIUS.TCPXLBIN,DISP=SHR Before FTPing, use the command SITE XLATE=DARIUS If everyone else using FTP on that MVS needs the changes anyway, just CONVXLAT the table into TCPIP.STANDARD.TCPXLBIN. That way you won't need the new dataset or the XLATE command. John Pashley Global Financial Products Division, EDS john.pashley@eds.com
Re: ftp: ASCII to EBCDIC conversion
Author: Jeffrey Altman
Date: Thu, 08 Oct 1998 00:00
Date: Thu, 08 Oct 1998 00:00
37 lines
1916 bytes
1916 bytes
In article <6vfg34$5m5$1@news.megsinet.net>,
Darius Cooper <Darius_cooper@Bigfoot.com> wrote:
: I realize this is not a strictly tcp/ip question, but I couldn't find a ftp
: newsgroup and figured the experts would be in this group:
:
: I want to transfer files from the PC to the mainframe using ftp.
: The transfer involves an ASCII to EBCDIC conversion.
: Most of the characters are translated correctly, but a few are not.
: Some characters that are not being translated correctly are: the caret sign,
: the square brackets, the thin vertical line (as distinct from the thick
: vertical "pipe" symbol).
:
: I repeated the ftp from AIX to the mainframe, using "type ascii" and "Type
: ebcdic", but the result was the same.
:
: I was wondering if there was any way to specify a translation table and then
: point ftp to that table.
:
: TIA,
:
: - Darius Cooper
:
:
:
Use Kermit. See http://www.kermit-project.org/
Kermit is designed to perform character set translation during the
file transfer and is available both on PCs and the mainframe operating
systems.
Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
The Kermit Project * Columbia University
612 West 115th St #716 * New York, NY * 10025
http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads