HP ARPA File Transfer Protocol User's Guide (36957-90159)

62 Chapter6
MPE/iX File System and Data Transfers
File Transfer Examples
ftp> get zfile mpefile
Some records were truncated during transfer. (FTPWARN 15)
The default ASCII file building parameters are fixed, 80 byte records. Since the original
record size is 132 bytes, only the first 80 bytes of each record are transferred, and the
remaining bytes in each record are discarded.
End-of-File Limitation
When you transfer a file to an MPE/iX system using FTP, it is important to define enough
MPE/iX file records for the resulting MPE/iX file. If you do not use BUILD parameters, the
default maximum number of records for both ASCII and binary transfers is 204,800
records. If you are transferring a file that exceeds this default, use the BUILD parameter
DISC=numrec to increase the number of records in the target file.
Be careful if you use BUILD parameters. If you do not explicitly specify the DISC=numrec
parameter, the default of 1,023 records is used and may not be sufficient.
If the number of records in the target MPE/iX file is insufficient, the target file is not
saved, and the existing file (if any) is preserved. An error message is displayed if this
occurs.
File Transfer Examples
The following examples show how files are stored and retrieved between an MPE/iX
system and a UNIX system using FTP.
Variable Record Files
The first example in Figure 6-1. shows an FTP user on MPE/iX transferring an ASCII file
to a UNIX system then retrieving the file with the original record structure intact.
AFILE is stored with the attributes: REC=-80,1,V,ASCII. AFILE can contain records of up
to 80 characters. The records are of variable length. The file transfer is performed:
(1)
ftp> ascii
ftp> put afile xxfile
The UNIX file system stores the data in a contiguous stream, separated by carriage return
characters (<cr>).
To retrieve the file as it was originally stored, the MPE/iX FTP user can do the following:
(2)
ftp> ascii
ftp> get xxfile xxfile;rec=-80,1,v,ascii