Example, Filecode, Form – HP Integrity NonStop H-Series User Manual
Page 54: Filecode form get

Example
To disconnect from a remote system and exit FTP, enter the following command:
ftp> exit
TACL 7>
filecode
Use the filecode command to specify a file code to be assigned to a newly created file during
a get or recv file transfer operation. The code is applied only when the current data representation
type is binary. A file code is an attribute of a Guardian file.
filecode code
code
is an integer from 0 through 32767. The default code is 0.
Example
To set the default file code to 100, enter the following command:
ftp> filecode 100
Binary filecode set to 100
form
Use the form command to set the current format. The default format is non-print. (This is the only
format currently available with NonStop FTP.)
form format
format
is the name of the format; only non-print is valid.
With non-print format, printer formatting codes are not interpreted. This format is normally used
with files that are going to be processed or stored.
Example
The following command sets the format:
ftp> form non-print
get
Use the get command to copy a remote file to the local system. You must have a connection
established with an FTP server (called an FTP session) before you can issue the get command.
The file transfer is based on the current status of all FTP options, toggles, and macros. Use the FTP
status
command to display these values. If the file you wish to copy is a structured file containing
embedded
See the stru command for more details.
The get command differs in the way it handles extents for structured files and unstructured files.
If you issue a get command for an unstructured file and a file with the same name already exists
on the local system, the command purges the old file and creates a new file with default extents.
However, if you specify extents in the get command by using the primary, secondary, and
maxextents
parameters, the command creates a new file containing the specified extents.
If you issue a get command for a structured file and a file with the same name already exists on
the local system, the command does not purge the old file, but merely overwrites it. The extents of
the old file are retained in the new file. Thus, any extents you specify are ignored.
To support the transfer of large files, the FTP Client and Server alters the line numbering scheme.
Files with fewer than 40,000 records are numbered sequentially. Records ranging from 40, 000
54
FTP—Transferring Files