|
| 1 | +# FTP Directory Listing |
| 2 | + |
| 3 | +## Description |
| 4 | + |
| 5 | +The "**FTP Directory Listing**" custom steps creates a table with the FTP directory contents, specified on the properties tab. |
| 6 | + |
| 7 | +## SAS Viya Version Support |
| 8 | + |
| 9 | +Created and tested on Viya 4, Stable 2023.01 |
| 10 | + |
| 11 | +## Important |
| 12 | +This custom step is created and tested for an FTP server installed on Linux. |
| 13 | + |
| 14 | +## Typical usage |
| 15 | +If you have a requirement to retrieve files from an FTP server, this custom step can be a starting point of your implementation. |
| 16 | + |
| 17 | +## User Interface |
| 18 | + |
| 19 | +### Tab: Properties |
| 20 | + |
| 21 | + |
| 22 | +- **FTP Host**: Specifiy the FTP host name or IP address. As you can see, this also can be a macro variable which can be defined, for example, in an initialization script. |
| 23 | +- **Directory**: Here you can enter the directory on the FTP server for which you want a directory listing. The default value is **/**. Please note that this value is case sensitive. |
| 24 | +- **File filter**: Here you can specify the file filter. The default value is **'*'**. |
| 25 | +- **Passive mode**: Specifies that a connection to the FTP server is passive. |
| 26 | +- **Debug Information**: Here you can set the debug option where the complete process is logged. |
| 27 | +- **User name**: Specifies the user name with which you want to connect to the FTP server. |
| 28 | +- **Password**: The password for the user name with which you want to connect to the FTP server. Note that here you can use a SAS encrypted password. |
| 29 | + |
| 30 | +## Usage |
| 31 | + |
| 32 | +Download the .step file, upload it into your environment and start using it, for example, as shown: |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +Note that the FTP host-, User name- and password settings are defined as macro variables in the initialization step. |
| 37 | + |
| 38 | +## Output port |
| 39 | + |
| 40 | +The output tables contains, after running the custom step, two columns, the directory name and the filename of the file(s) found on the FTP server. |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +## Change Log |
| 45 | + |
| 46 | +Version 1.1 (14AUG2024): Published externally. |
| 47 | + |
| 48 | +Version 1.0 (14APR2023): Initial version. Published internally. |
0 commit comments