Skip to Content
0
Former Member
May 31, 2013 at 12:58 PM

Connecting AS400 system using FTP script

109 Views

Hi All,

Prxoy to File Scenario.

I need to connect AS400 system using FTP script. Need to place the file in AS400 and get that file processed from script only.

We have been asked to use the follwoing script.

FTP Statements

OPEN <AS400 server name>

USERID

PASSWORD

PUT DIR/FILE QTEMP/Receiver_Filename

QUOTE RCMD SNDNETF FILE(QTEMP/Receiver_Filename) TOUSRID((Receiver_ID AS400COR))

QUIT

Where DIR/FILE will be PI Folder and filename

Let me know if any one of you come across this scenario and solution for the same.

Thanks in Advance.

Regards,

Sreenivas.