I'm trying to automate an ftp session where I'm sending a file from the as400 to an ftp server located on our lan.
I use the following to run a script:
PGM
OVRDBF FILE(INPUT) TOFILE(WTJ932/COIFILE) +
MBR(COIMBR1)
OVRDBF FILE(OUTPUT) TOFILE(WTJ932/COIFILE) +
MBR(COIMBR1)
FTP RMTSYS('10.4.1.14')
DLTOVR FILE(INPUT)
DLTOVR FILE(OUTPUT)
ENDPGM
For the script I use:
<blank line>
user wtj932 summer03a
ascii
cd c:/
lcd wtj932.lib
mput inforce.file
quit
When I run it I get the following:
Output redirected to a file.
Input read from specified override file.
Connecting to remote host 10.4.1.14 using port 21.
220- PMSLIC FTP Server WAR-FTPD 1.65 Ready
220 Please enter your user name.
Enter login ID (wtj932):
331 User name okay, Need password.
Please log in before issuing this command.
Enter an FTP subcommand.
> user wtj932 *********
530 Already logged in. New useraccount denied.
Enter an FTP subcommand.
> ascii
550 Please log in before issuing this command.
Enter an FTP subcommand.
> cd c:/
You must first issue the USER subcommand.
Enter an FTP subcommand.
> lcd wtj932.lib
Could not access library WTJ932.LIB.
Enter an FTP subcommand.
> mput inforce.file
You must first issue the USER subcommand
Enter an FTP subcommand.
> quit
221 Goodbye. Control connection closed.
I am completely confused about the user ID and Password. I've tried using and FTP user ID and Password, a LAN user ID and Password and an AS400 user ID and password but they all com up the same.
I'd like to start there and once thats done move on to the next issue.
I use the following to run a script:
PGM
OVRDBF FILE(INPUT) TOFILE(WTJ932/COIFILE) +
MBR(COIMBR1)
OVRDBF FILE(OUTPUT) TOFILE(WTJ932/COIFILE) +
MBR(COIMBR1)
FTP RMTSYS('10.4.1.14')
DLTOVR FILE(INPUT)
DLTOVR FILE(OUTPUT)
ENDPGM
For the script I use:
<blank line>
user wtj932 summer03a
ascii
cd c:/
lcd wtj932.lib
mput inforce.file
quit
When I run it I get the following:
Output redirected to a file.
Input read from specified override file.
Connecting to remote host 10.4.1.14 using port 21.
220- PMSLIC FTP Server WAR-FTPD 1.65 Ready
220 Please enter your user name.
Enter login ID (wtj932):
331 User name okay, Need password.
Please log in before issuing this command.
Enter an FTP subcommand.
> user wtj932 *********
530 Already logged in. New useraccount denied.
Enter an FTP subcommand.
> ascii
550 Please log in before issuing this command.
Enter an FTP subcommand.
> cd c:/
You must first issue the USER subcommand.
Enter an FTP subcommand.
> lcd wtj932.lib
Could not access library WTJ932.LIB.
Enter an FTP subcommand.
> mput inforce.file
You must first issue the USER subcommand
Enter an FTP subcommand.
> quit
221 Goodbye. Control connection closed.
I am completely confused about the user ID and Password. I've tried using and FTP user ID and Password, a LAN user ID and Password and an AS400 user ID and password but they all com up the same.
I'd like to start there and once thats done move on to the next issue.