cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting AS400 system using FTP script

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Bhargavakrishna
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Bhargava,

Thanks for proving the reference links.

Can you please let me know how to use the above code in Script file.

Whether its similar to Shall script or else?

Like scrit file with above commands and creating file as Scriptrun.sh

Regards,

sreenivas.