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

60 Chapter6
MPE/iX File System and Data Transfers
Using BUILD Parameters with FTP
A negative value indicates record size in bytes. A positive integer value
indicates record size in words (two bytes per word). If DEV= is not specified,
the default record size is 128 words.
blkfactor
The default blkfactor size is one. When creating variable length files,
include the 1 in the parameter string to maintain the record size specified
in the parameter REC=.
F, V, B
Indicates fixed (F), variable (V), byte (B), length records. The default is
fixed (F).
BINARY
ASCII
Indicates the type of records the file contains: BINARY for binary coded
records or ASCII for ASCII coded records. BINARY is the default.
DEV=device
Specifies where the file will be stored. The default is to a disk file.
CODE=filecode
A code indicating a specially formatted file. Example: CODE=PROG. Default
is none.
DISC=numrec
The value that affects file transfer success is numrec. This value sets the
maximum number of records the file can contain. Must be large enough for
the target file or the file transfer will fail. The default is 1,023 records.
When you specify BUILD parameters in an FTP transfer, you do not have to specify the
MPE/iX file type standard (STD) since it is the default. Note that STD is the only
supported MPE/iX file type.
For more information about BUILD parameters, use MPE/iX online help (HELP BUILD
PARMS), or see the MPE/iX Commands Reference Manual.
Examples Using BUILD Parameters
The first example shows an MPE/iX user transferring a file from the remote system to an
MPE/iX system using only the CODE=PROG parameter:
ftp> GET filex file2;CODE=PROG
The file is created with the BUILD command defaults: fixed binary, 128 word records, with a
maximum number of records equal to 1,023.
The second example shows an MPE/iX user transferring a group of binary files from the
remote system to an MPE/iX system:
FTP> BINARY
200 Type set to l.
ftp> MGET P* ;CODE=PROG