You don't need the OPEN it's specified on the FTP command, it's interpreting OPEN as the user ID
Thanks,
Tommy Holden
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Versfelt, Charles
Sent: Monday, May 15, 2017 10:08 AM
To: midrange-l@xxxxxxxxxxxx
Subject: FTP issue Authentication
I'm having an issue doing FTP, we're using a method we've used in the past.
Source file contains the script and the log goes to a second source file.
I changed some of the names but left the rest the same.
FTP command in CL program:
FTP RMTSYS('SYSNAME.HOSTEDFTP.COM')
Script:
OPEN SYSNAME.HOSTEDFTP.COM
USER prof_name passwd10
CD /Myron catalog
PUT eprodcat_1746207GR.csv
QUIT
The log I'm getting:
Connecting to host ftp.HOSTEDFTP.COM at address xxx.xxx.xxx.xxx using p
220 Service ready for new user.
Enter login ID (prof_name):
331 User name okay, need password for OPEN.
530 Authentication failed.
Enter an FTP subcommand.
USER prof_name **********
No response from remote host; all connections closed.
I have the AS/400 profile and password the same as the remote profile and password.
The only thing I can think of is that the remote profile is lower case and the iSeries it's upper case.
I don't know if that matters.
I'm running this signed on under that user profile.
When I do FTP from the command line and enter the user profile & password I successfully get in.
Charlie
This email message has been scanned for viruses and malware by Mimecast.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.