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

Chapter 4 37
Using FTP
Transferring Remote Host files to MPE/iX
ASCII 80 Bytes Fixed = Default record length for a terminal screen padded with
blanks.
Binary 256 Bytes Fixed = Default record length for a MPE executable program
file.
Changing File Building Parameters
You can change how a file is copied to your local system with the MPE/iX BUILD command
parameters of the GET or PUT command using the following syntax:
ftp> GET
remotefile localfile;buildparms
The supported BUILD command parameters are:
:REC=[-
rcsizebytes
][,
blkfactor
[,[{F}][,{BINARY}]]]]
{V} {ASCII}
{B}
[;DEV=
device
]
[;CODE=
filecode
]
[;DISC=[
numrec
][,[
numextents
][,[
initialloc
]]]]
The parameter REC= can also be specified in words (two bytes per word) using a positive
integer value. The default
blkfactor
size is one.
HP ARPA FTP supports a subset of the MPE/iX build parameters implemented by the
MPE/iX BUILD command. Accordingly, many of the build parameter defaults are
overridden by FTP. The FTP build parameter defaults are configured in the ASCII file
BLDPARMS.ARPA.SYS and may by modified as desired. Also, users may make local copies
and set their own defaults via a file equation like the following.
:FILE BLDPARMS.ARPA.SYS=MYFILE
See Chapter 6 , “MPE/iX File System and Data Transfers,” for more information about
FTP and supported BUILD command parameters. For additional information about BUILD
parameters, use MPE/iX online help (HELP BUILD PARMS), see the MPE/iX Commands
Reference Manual, or read the BLDPARMS.ARPA.SYS file, for more information.
Using file building parameters, you can transfer a file as follows:
ftp> GET remfile newfile;REC=-80,,F,ASCII
In the next example, using CODE=PROG defaults to a target file of fixed binary, 128 words
(which are the REC= default values):
ftp> GET filex file2;CODE=PROG
Transferring Files to Other Groups
To transfer files to other groups in your account, you can exit from FTP, and re-log on into
the other group, or specify the group name as part of the
localfile
specified.
For example, you could transfer a file named nsprog to NSTEST1 in GROUP1 as follows:
ftp> GET nsprog NSTEST1.GROUP1