Quote:> I am running on Solaris 2.6 ...I am pulling a text file from an IBM
> mainframe down to
> my UNIX box. The transfer mode is ASCII and the file arrives fine. The
> problem
> is that on the mainframe the file is FIXED record length ...each record is
> padded
> out to a specific length with spaces ( 20h ). When the file arrives on the
> UNIX
> box, the trailing spaces have been removed. Is there any way to prevent
> this?
> I know about "binary" transfer but this will not work since I need the IBM
> Mainframe to ASCII character translation.
It strikes me as odd that the ASCII mode of FTP would truncate fixed length
records. If this is really the case then you might try downloading the file
in binary mode, then running a translation filter on it once it has been
downloaded. see:
man dd
for information on converting files. dd handles conversions and blocking of
fixed length records.
--
-wiseguy
slummin it in Colorado ski country, while watching the IT industry move
to India, and thinking about retraining as a Sanitation Engineer
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----