HP ARPA File Transfer Protocol User's Guide (36957-90159)
64 Chapter6
MPE/iX File System and Data Transfers
File Transfer Examples
Figure 6-2. Mixed Mode Transfer
Fixed Record Files
Transferring files that contain imbedded carriage return-line feed characters (<cr> <lf>)
can be a problem if you try to transfer these files in ASCII mode. In FTP ASCII transfer
mode, the remote system interprets a carriage return-line feed pair (<cr> <lf>) as a new
record. One method of transferring a fixed file to a remote system then retrieving it with
the data and record structure intact is pictured in Figure 6-3., “Fixed Record Transfer,”. An
MPE/iX FTP user transfers an ASCII file with fixed length records of 132 bytes long to a
UNIX system in FTP binary mode as follows:
(1)
ftp> binary
ftp> put FXFILE uxfile
On the UNIX system, the file is stored as a contiguous stream, including the spaces. To
retrieve the file and maintain the original record structure, the MPE/iX user must use the
GET command with the following build parameters:
(2)
ftp> binary
ftp> get uxfile uxfile;rec=-132,,f,ascii