×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Dear Terry.
I am using FTPAPI in RPG and think it's very
nice being able to use it in CL. Please provide
a copy.
Thanks in advance.
Helge
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Terrence Enger
Sent: Thursday, September 30, 2010 1:07 AM
To: RPG programming on the IBM i / System i
Subject: RE: FTP Session Interactivity in a Program
On Wed, 2010-09-29 at 18:14 -0400, Dennis Lovelady wrote:
Hi, Terry:
I would like a copy, if you don't mind extending that offer to me. :)
Thanks!
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
It's on its way.
The offer is open to anyone who is interested. By way of a "sales
pitch", I append a sample CLP.
Enjoy,
Terry.
ï-----------------------------------------------------------------
pgm
dcl &handle *dec (3 0)
ftpapi action(*Conn) rethandle(&handle) +
host('localhost') +
user('tenger') password('xxxxxxxxxx')
ftpapi action(*NamFmt) handle(&handle) +
namfmt(*ifs)
ftpapi *binaryMode &handle newsetting(*on)
ftpapi *RmtCmd &handle +
icmdstr(crtsavf qtemp/renamed)
ftpapi *put &handle +
rmtname('/QSYS.LIB/QTEMP.LIB/RENAMED.FILE') +
lclname('/QSYS.LIB/V40LBTXE.LIB/THING.FILE')
ftpapi *RmtCmd &handle +
icmdstr(dsplib qtemp output(*print))
ftpapi *RmtCmd &handle +
icmdstr(dspsavf qtemp/renamed output(*print))
ftpapi *quit &handle
endpgm
As an Amazon Associate we earn from qualifying purchases.