Site Method (FTP)


10.2, PLBCMP GUI Only

 

The Site method sends a site specific command to the FTP server. This method uses the following format:

 

[label]

{object}.Site

[GIVING {return}] using [*Cmd=]{cmd}

 

Where:

label

Optional. A Program Execution Label.

object

Required. A FTP that has been declared.

return

Optional. A Numeric Variable that returns a value for the method pass or failure.

cmd

Optional. A Character String Variable or string literal that specifies the specific command data.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The ZERO flag is set if the returned value is zero indicating an error has occurred. Oherwise, the ZERO flag is set to FALSE indicating that the method executed successfully.

  2. The OVER flag is set if the {return} variable is too small to receive the numeric value.

  3. The EOS flag is always set to FALSE.

  4. The {return} variable is set to NULL if there was an error detected.

  5. Debug log entries are generated if the debug logging is enabled. See the FTP Debug Method description to enable debug logging.

 

 

See Also: FTP Control Methods, Method Syntax



PL/B Language Reference RmDir Method (FTP) Size Method (FTP)