27.11.2014 Views

z/VM: TCP/IP User's Guide - z/VM - IBM

z/VM: TCP/IP User's Guide - z/VM - IBM

z/VM: TCP/IP User's Guide - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FTP Subcommands<br />

Table 3. FTP Subcommands (continued)<br />

SubcommandMinimum Description<br />

Abbreviation<br />

STRUCT STR Sets the file transfer<br />

structure.<br />

SUNIQUE SU Toggles the storage<br />

methods.<br />

SYSTEM SY Displays the name of the<br />

foreign host’s operating<br />

system.<br />

TCHINESE TC Sets the transfer type to 73<br />

TCHINESE.<br />

TYPE TY Specifies the transfer type. 74<br />

USER U Identifies you to a foreign<br />

host. LOGIN is a synonym<br />

for USER.<br />

75<br />

Page<br />

71<br />

71<br />

73<br />

Continuing Subcommand Input Strings<br />

Due to system limitations, FTP subcommand input lines are restricted to 130<br />

characters; subcommand text that is present after 130 characters is ignored. When<br />

FTP subcommands are supplied, a continuation operator — a plus sign (+)<br />

preceded by a single blank — can be used to continue a string on a subsequent<br />

input line. The plus sign and its preceding blank will not be present in the<br />

resulting final string; thus, any blanks necessary to delimit multiple tokens for<br />

certain FTP subcommands must be explicitly provided as part of the input string(s)<br />

that are continued. Delimiting blanks can be included either before the ″ +″<br />

continuation operator, or at the beginning of the next line of continued text. Note<br />

that multiple blanks are not significant (that is, are not preserved). The limit for the<br />

subcommand input stream continued in this fashion is 200 bytes.<br />

Example of Line Continuation<br />

Suppose the current working directory on the foreign host is:<br />

GPLSRV2:DOC.LIBRARY.PROJECTX<br />

The following MKDIR subcommand is then issued, using two lines:<br />

mkdir gplsrv2:doc.library.projectx. +<br />

worlfiles<br />

The foreign host replies with:<br />

>>>MKD gplsrv2:doc.library.projectx.worlfiles<br />

257 New directory GPLSRV2:DOC.LIBRARY.PROJECTX.WORLFILES has<br />

been created.<br />

After creating several other directories, you realize the worlfiles directory should<br />

be workfiles. To correct this, you issue an RMDIR command of the form:<br />

rmdir +<br />

with the remainder of the command completed by retrieving and using previously<br />

entered commands:<br />

gplsrv2:doc.library.projectx. +<br />

worlfiles<br />

The foreign host replies with:<br />

Chapter 2. Transferring Files Using FTP 29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!