[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Transferring Source Files between iSeries using FTPAPI
Werner,
Trace that "error" back to FTPAPIR4 and there is actually a comment XXX: Do
we really want to do this?. Not sure if that refers to transferring source
as binary or checking the "error".
It is a question of what you think is valid or not. When Scott wrote that
code, he might have had a doubt about doing that check (based on the comment
or he was simply trying to prevent someone from sending "garbage" to systems
that don't handle it the way IBM i to IBM i does).
You have the source so you can change it to skip around the "error". Let us
know how you solve it and what the results appear to be.
Mike
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Werner Noll,
GEFIS
Sent: Monday, April 28, 2008 9:21 AM
To: 'HTTPAPI and FTPAPI Projects'
Subject: Transferring Source Files between iSeries using FTPAPI
Hi all,
i use FTPAPI for a long time but only for transferring from the IFS to PC
Servers an back.
Now I have the issue to transfer source members from one iSeries to another.
My tests always result in an error: 'Source files should be transferred in
ASCII mode".
In my case I don't need an ASCII mode as it is from EBCDIC to EBCDIC!
My code looks like:
LocFile = '/QSYS.LIB/GSL.LIB/QRPGLESRC.FILE/RGZDIRR.MBR';
RmtFile = '/QSYS.LIB/NOLL.LIB/QRPGLESRC.FILE/RGZDIR#.MBR';
If FTP_Put(fd:%trimr(RmtFile):%trimr(LocFile)) < *zeros;
FTPErrMsg = FTP_Error();
I set the name format to 1 before.
It's probably a stupid question but I'm at a loss.
Thanks for any help in advance.
Regards,
Werner Noll
Ludwigstrasse 9
63739 Aschaffenburg
Germany
Phone: +49-6021-299880
Fax: +49-6021-299882
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------