Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ftp: put-command ->Error CPE3101

1,782 views
Skip to first unread message

Stephan Schmuck

unread,
Sep 4, 2006, 9:01:02 AM9/4/06
to
Hi there,

Hope anyone can help me with this issue - found nothing on the net that
will solve my prob.
I'm trying to ftp a file from windows to AS400 but I'm getting an
Error.
Here is what I see on prompt.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Dokumente und Einstellungen\admin>ftp 172.21.0.20
Verbindung mit 172.21.0.20 wurde hergestellt.
220-QTCP at AS400.
220 Connection will close if idle more than 5 minutes.
Benutzer (172.21.0.20:(none)): lohusr
331 Enter password.
Kennwort:
230 LOHUSR logged on.
ftp> lcd C:\Gecotime\dat\EXPORT
Lokales Verzeichnis jetzt C:\Gecotime\dat\EXPORT
ftp> cd lohdta
250 "LOHDTA" is current library.
ftp> ascii
200 Representation type is ASCII nonprint.
ftp> put lnstap
200 PORT subcommand request successful.
150 Sending file to member LNSTAP in file LNSTAP in library LOHDTA.
426-Unable to close file. Error code CPE3101.
426 Data transfer ended.
FTP: 64d Bytes gesendet in 0,02Sekunden 424,88KB/s
ftp>


For any help and reading my message. A Big Thanks ^^.

Greets,
Stephan Schmuck

Brad

unread,
Sep 4, 2006, 10:33:59 AM9/4/06
to

Stephan

CPE3101 is the IBM message for "A non-recoverable I/O error occurred"
this is a not very informative error to say that there was a problem
writing to the file. You may be able to see more information from the
FTP job running on the iSeries in subsystem QSYSWRK.

Just hazzarding a few guesses

1) Are you trying to FTP directly into an Externally described file
with packed fields, if so I would suggest you FTP to an alternate file
and import with CPYF or even CPYFRMIMPF, you can run this from the FTP
command line as part of your script using QUOTE RCMD CPY ......

2) Does the file you are FTPing to have any problems, run RUNQRY *N and
RGZPFM on it to check it out.

3) Does the FPT user have write authority to the file.

Hope one of these helps.

Regards Brad

Stephan Schmuck

unread,
Sep 4, 2006, 10:50:59 AM9/4/06
to
Hi,

> 1) Are you trying to FTP directly into an Externally described file
> with packed fields, if so I would suggest you FTP to an alternate file
> and import with CPYF or even CPYFRMIMPF, you can run this from the FTP
> command line as part of your script using QUOTE RCMD CPY ......

think, the problem lies there.
Yes, I want to ftp directly into such a file.
The file on Windows allready contains packed numeric data (converted
programmaticly by myself).
Should I ftp this file to an alternate file now, and use CPYF?
And what ftp type should I use. (Guess that bin should work, cause the
numeric fields are allready packed by my own?)

Thanks for your help.

Regards Stephan


Brad schrieb:

Steve Richter

unread,
Sep 4, 2006, 11:48:02 AM9/4/06
to

Stephan Schmuck wrote:
> Hi there,
>
> Hope anyone can help me with this issue - found nothing on the net that
> will solve my prob.
> I'm trying to ftp a file from windows to AS400 but I'm getting an
> Error.
> Here is what I see on prompt.
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\Dokumente und Einstellungen\admin>ftp 172.21.0.20
> Verbindung mit 172.21.0.20 wurde hergestellt.
> 220-QTCP at AS400.
> 220 Connection will close if idle more than 5 minutes.
> Benutzer (172.21.0.20:(none)): lohusr
> 331 Enter password.
> Kennwort:
> 230 LOHUSR logged on.
> ftp> lcd C:\Gecotime\dat\EXPORT
> Lokales Verzeichnis jetzt C:\Gecotime\dat\EXPORT
> ftp> cd lohdta
> 250 "LOHDTA" is current library.
> ftp> ascii
> 200 Representation type is ASCII nonprint.
> ftp> put lnstap

Wow, a lot of defaults. I dont know enough FTP to know if this is
correct or not. My experience with FTPing to the AS400 is it is easiest
to FTP a text file to the IFS and then use RCMD to run a commands like
CPYFRMSTMF and CPYFRMIMPF to get the data into a member in the QSYS
file system.

-Steve

0 new messages