|
Just in case you need it:
http://www.scottklement.com/ftpapi/
Also, for questions or problems join the FTPAPI mailing list
http://www.scottklement.com/mailman/listinfo/ftpapi
HTH,
Charles
Brian,
Scott Klement's FTPAPI is largely oriented to use from RPG. If you
prefer to work in CL, I have a command interface to some of the
functions that Scott provides.
I am distributing the command interface under the GPL v2 or later. Let
me know if you would like me to send you a copy.
HTH,
Terry.
debugging the script and didn't bother adding it back in.
On Wed, Sep 29, 2010 at 4:01 PM, Brian Piotrowski
<bpiotrowski@xxxxxxxxxxxxxxx> wrote:
Ahhhhh, so true. I commented out that statement when I was
Charles.
Thanks a bunch fellas. And thanks for the heads up on the API,
bounces@xxxxxxxxxxxx] On Behalf Of Luis Rodriguez
/b;
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-
script fromSent: Wednesday, September 29, 2010 3:49 PM
To: RPG programming on the IBM i / System i
Subject: Re: FTP Session Interactivity in a Program
Brian,
It has been a lot of time since I have done this (using a FTP
well (eg.inside a CL pgm) but, aren't you supposed to OVRDBF your output as
behavesOVRDBF OUTPUT TOFILE(MYLIB/MYFILE) MBR(SRCNAME)?
Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries
--
On Wed, Sep 29, 2010 at 3:03 PM, Brian Piotrowski <
bpiotrowski@xxxxxxxxxxxxxxx> wrote:
Hi All,
I'm having a bit of a challenge with one of my programs and how it
to an FTPwhen it is run. The program I wrote will use an input file to go
startssite, get a file and quit. However, when I execute the program it
sense thatthe FTP session in a semi-interactive session. It's semi in the
QUITthe script will run, but at the end of the script where I have a
thecommand, it will pause and wait for the user to press enter to end
exit when itterminal session.
What I expect to happen is that the program will automatically
CL do anencounters the QUIT. When I try the commands manually (ie: from a
I typeFTP RMTSYS and enter each command one by one), it works fine when
enter.QUIT it exits the terminal session without asking for me to press
exiting andHowever, running it in the program will prompt the user before
MBR(FTPEXPDTA)continuing on with the program.
Here is a snippet of the code causing me grief:
OVRDBF FILE(INPUT) TOFILE(DEVSRC/QCLLESRC)
"FTP"
GET: FTP RMTSYS('xx.xx.xx.xx')
MONMSG MSGID(CPF0000) EXEC(DO)
SNDUSRMSG MSG('"SPEXP" Was not done normally as
something smallMSGTYPE(*INFO) TOMSGQ(QSYSOPR)
GOTO CMDLBL(END)
ENDDO
And here is the contents of FTPEXPDTA:
(username) (password)
CDUP
SENDPA
QUOTE SITE LRECL=500 RECFM=FB
LCD Mylocaldir
CD remotelib
GET EXPEDITE (REPLACE
QUIT
Anyone have any idea why this is occurring? It's probably
you reallyon which I'm gapping, but I can't figure it out.
Thanks!
/b;
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Brian Piotrowski
Assistant Mgr. - I.T.
Simcoe Parts Service, Inc.
Ph: 705-435-7814 x343
Fx: 705-435-5029
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
http://www.simcoeparts.com
Please consider the environment. Don't print this e-mail unless
andneed to.
The information contained in this communication is confidential
you haveintended only for the use of those to whom it is addressed. If
telephone (collectreceived this communication in error, please notify me by
mailing listif necessary) and delete or destroy any copies of it. Thank you!
--
This is the RPG programming on the IBM i / System i (RPG400-L)
mailing listTo post a message email: RPG400-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
This is the RPG programming on the IBM i / System i (RPG400-L)
mailing listTo post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the IBM i / System i (RPG400-L)
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.