ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Batch FTP from a PC to an AS/400

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Batch FTP from a PC to an AS/400

    Batch FTP from a PC to an AS/400

    To automatically transfer files from a PC to an AS/400 in
    batch via FTP, first create a file containing FTP subcommands.
    For example, to transfer file C:\PCTEST.CSV to file PCTEST
    in library MYLIB on AS/400 MYAS400 with user profile MYUSER
    and password PASSIT, enter the following directives in a
    DOS script file called UPTO:

    Code:
    open MYAS400 
    Myuser 
    PASSIT 
    put c:\pctest.csv MYLIB/PCTEST 
    quit
    Then, at the DOS command line, execute the batch process with
    the following command:

    Code:
    ftp -s:UPTO

    You can code any valid FTP commands in the script file. Note
    that the user ID and password must be stored in the FTP command
    file, so be sure to secure that file appropriately.
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com
Working...
X