Since the first file squawked about EPRT you might try fixing that - add the SENDEPSV command
http://www-01.ibm.com/support/docview.wss?uid=nas8N1013732


Your log
ftp> get prders01.prders01 EHOU1710.ret (REPLAC
500 PORT/EPRT (Active Mode/Extended Active Mode) is not supported. Use PASV/EPSV instead of this
150 Retrieving member PRDERS01 in file PRDERS01 in library @DELTA@.
226 File transfer completed successfully.

Jim Franz


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Bruce Collins
Sent: Wednesday, December 06, 2017 8:45 AM
To: midrange-l@xxxxxxxxxxxx
Subject: FTP from Windows 7/10 PC to IBM i is not working correctly anymore

Guys, We have been running this batch program for over two years and last week it has started having an issues. Below is the batch file and script (without the credentials). We are running 7.2 and on CUME TC17068 that was installed on 8/27/2017 and we have not installed any PTFs since then.



The problem occurs when pulling the files from the IBM i. (We are using the same service profile without any changes).



Below is the script that is being executed. All goes well until the second “get”. See ftp log below. I have found that if I wait two minutes and try the second “get” it works but then try the third get and it fails. I wait two more minutes or so and the third “get” works.



I thought it might be some connection issues so I ended and restarted the FTP service but that had no effect.



This is not my first rodeo and have used this for a few years so I appreciate the feedback if any of you have a solution or idea of why this might be occurring



Thanks in advance



Hoss



Windows Batch PGM:



FTP -s:scriptfile.txt 192.168.168.168



SCRIPT File scriptfile.txt:

<username>

<password>

lcd Y:\

cd @DELTA@

get prders01.prders01 EHOU1710.ret (REPLAC

get prdrsa01.prdrsa01 EHOU1710.rsa (REPLAC

get prdjrf01.prdjrf01 JZPJ1710.ret (REPLAC



FTPLOG

Connected to 192.168.168.168.

220-QTCP at SYSTEMNAME.

220 Connection will close if idle more than 10 minutes.

501 OPTS unsuccessful; specified subcommand not recognized.

User (192.168.168.168:(none)):

331 Enter password.



230 <username> logged on.

ftp> lcd Y:\

Local directory now Y:\.

ftp> cd @DELTA@

250 "@DELTA@" is current library.

ftp> get prders01.prders01 EHOU1710.ret (REPLAC

500 PORT/EPRT (Active Mode/Extended Active Mode) is not supported. Use PASV/EPSV instead of this

150 Retrieving member PRDERS01 in file PRDERS01 in library @DELTA@.

226 File transfer completed successfully.

ftp: 46368 bytes received in 0.01Seconds 5796.00Kbytes/sec.

ftp> get prdrsa01.prdrsa01 EHOU1710.rsa (REPLAC

425 Not able to open data connection.

ftp> get prdjrf01.prdjrf01 JZPJ1710.ret (REPLAC

425 Not able to open data connection.

ftp>



Bruce ‘Hoss’ Collins

Houston County Commission

462 N Oates St

Dothan, AL 36303

334-677-4711
--
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: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at https://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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.