Operating System - HP-UX
1825161 Members
2324 Online
109679 Solutions
New Discussion юеВ

FTP ascii files being truncated

 
SOLVED
Go to solution
Alan Casey
Trusted Contributor

FTP ascii files being truncated

I have a problem when I try to ftp data to a mainframe:

I am transferring in ascii mode, a text file, but on ly the first 80 characters are being transferred. If I transfer in binary mode, the entire file is sent but not useable on the mainframe system.

Has anyone any ideas?
I have tried toggling the 'cr' option, this didn't help.
2 REPLIES 2
Bill Hassell
Honored Contributor
Solution

Re: FTP ascii files being truncated

This is a mainframe filetype issue. You'll need to consult with the mainframe ftp manuals to see what is needed to create an ASCII file with variable length or with a longer line length. Unlike Unix, most mainframes have dozens of filetypes and fixed record length ASCII is common (harkens back to the days of punched cards).

The binary transfer wil store the file in Unix format on the mainframe but the utilities on the mainframe won't understand a Unix variable length file format.


Bill Hassell, sysadmin
Alan Casey
Trusted Contributor

Re: FTP ascii files being truncated

Got this io work using the following:

ftp>site wrap