Examples, Example 1 – HP Integrity NonStop H-Series User Manual
Page 76

filecode
indicates the file code of the local file. filecode is a number from 0 through 32767.
When FTP is in binary transfer mode, the default file code is 0. When FTP is in ASCII
transfer mode, the default file code is 101. This attribute will override the current setting
of the filecode command.
primary
indicates the primary extent size in pages (2048-byte units) of the local file. primary is
an integer from 1 through 65535. The default is determined internally.
secondary
indicates the secondary extent size in pages (2048-byte units) of the local file. secondary
is an integer from 1 through 65535. For structured files, the default size is 16 pages. For
unstructured files, the default is determined internally.
maxextents
indicates the maximum number of extents of the local file. maxextents is an integer from
1 through 978. The default value is 978 extents. When your command specifies a
maxextents
value lower than 16 but greater than 0 for a stuctured or unstructured file,
FTP sets the maxextents value to 16.
NOTE:
When you are transferring a large file, you can improve performance by specifying
larger extent sizes allowing the system to allocate fewer extents while the file is being
copied.
filetype
for structured file transfer, indicates the type of file:
indicates an entry-sequenced file
e
indicates a key-sequenced file
k
indicates a relative file
r
record-len
indicates the length of the records in a structured file. You must obtain this information using
the FUP INFO command with the DETAIL option (see the Note below).
pri-key-len
indicates the primary key length in a structured file. You must obtain this information using
the FUP INFO command with the DETAIL option (see the Note below).
key-offset
indicates the key offset in a structured file. You must obtain this information using the FUP
INFO
command with the DETAIL option (see the Note below).
index-blk-len
indicates the index block length in a structured file. You must obtain this information using
the FUP INFO command with the DETAIL option (see the Note below).
NOTE:
To ensure that structured files are correctly transferred, you must first issue the FUP
INFO command with the DETAIL option for the file you wish to transfer. All file attributes
that are present in the display must be included in the recv command. The following example
shows the file attributes for a file named KEYSEQ:
Examples
Example 1
This example copies a remote ASCII file, named BIGEDIT, to the local system.
76
FTP—Transferring Files