To execute an iSeries file transfer from the command line use the following commands.
For download use:
IFTD Library iSeries_File FFD Type PC_FileName
For upload use:
IFTU Library iSeries_File FFD PC_FileName
|
• |
Library is the library on the iSeries server
|
|
• |
iSeries_File is the data file to use for the transfer
|
|
• |
FFD is the file field descriptor
|
|
• |
Type: 0 for XLS, 1 for CSV, 2 for Tab-delimited(TXT) |
|
• |
PC_FileName is the destination file name for the XLS, CSV, or TXT file
|
Example
BZFTP /L''IFTD QGPL F1201 OUTFILE 0 F1201.XLS''
This example performs an iSeries file transfer download on QGLP\F1201 by creating an FFD of the name OUTFILE and then creates the Excel spreadsheet F1201.XLS.