Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Activities that populate list variables are often followed by a LOOP processing sequence directive or other constructs to process the contents of the list.  Refer to Variables and Lists for more information about the use of list variables.

An email Event notification named FTPDIRLISTFAIL is available in this Activity. If this event is active and a failure occurs in this Activity, then an email will be sent. Refer to Event Maintenance for setting up Event notifications.

INPUT Parameters:

FTPCONFIG: Required

This parameter should contain the name of an FTP Configuration. This Configuration can be created and maintained using the FTP Configuration option in the Navigator.

If this parameter is not provided or is not found, this Activity will return an error and processing will be abandoned.

REMOTEDIRECTORY: Optional

If it contains a non-blank value it will be used as the directory on the remote host from which the list of files are retrieved. If this parameter is not provided, then the remote host directory from the FTP Configuration will be used. Note that this is a required parameter if configuration of type command list is used.

GETLIKE – Optional

If it contains a non-blank value it will be used as the pattern use to identify files to be listed. Note that if this is specified, only files matching the given pattern will be listed. If blank, values from the FTP Configuration will be used.

OUTPUT Parameters:

FILELIST

Specifies the name of a list variable that will contain a list of files from the remote host. The list will contain only the file name.
For example:   order5.csv

FILEPATH

Specifies the name of a list variable that will contain a list of files from the remote host. The list will contain the full path and file name.
For example:   /inftp/order5.csv

This list may be used as an alternative to the FILELIST

Processing

This Activity uses either the LANSA Integrator FTPService or SFTPService (depending on FTP configuration choices).

...