× 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.



Hi Paul

This is a good recommendation, the standard one that IBM have suggested.

I do still prefer Scott Klement's FTP API - because you don't have to wait until the process is done to respond to problems. Every FTP subcommand is run using a function in the SRVPGM, with return codes that let your program handle whatever comes up along the way. My former boss, Richard Schoen, wrote a set of CL commands that can be called instead of the API functions.

The thing I mentioned to Darryl was, take any script, read through it, then take the parameters and put them into the function parameters - it's amazing to be able to manage the process a step at a time.

I remember that Visual Basic had something like this - every step was a call that you were able to react to.

The SRVPGM also does not use the system's FTP facilities, by the way.

Cheers
Vern

On 9/8/2020 6:58 PM, Steinmetz, Paul via MIDRANGE-L wrote:
Use the OVRDBF, one for STDIN and one for STDOUT.
Then write something that will read through STDOUT, looking for positives and/or negatives.

Example of an STDOUT.

227 Entering Passive Mode (192,168,X,X)
150 Opening BINARY mode data connection for ListBoxes.new (19832317 bytes).
226 Transfer complete.
19832317 bytes transferred in 1.854 seconds. Transfer rate 10699.838 KB/sec.
Enter an FTP subcommand.
quit
221-You have transferred 19832317 bytes in 1 files.
221-Total traffic for this session was 19832829 bytes in 1 transfers.
221-Thank you for using the FTP service on app.
221 Goodbye.

Paul

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Vernon Hamberg
Sent: Tuesday, September 08, 2020 6:37 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Is there a user exit or something similar that I can use to monitor when a FTP command is complete?

Hi Darryl

I have been thinking, if you have a PF that has the FTP commands, and you use the OVRDBF of STDIN to that file, then maybe make a program that reads through the PF member and makes the subcommands there into parameters for the functions in the service program - that might leverage what has been done before.

Regards
Vern

On 9/8/2020 1:24 PM, a4g atl wrote:
They standard used was QTEMP/QFTPLOG.
Darryl.

On Tue, Sep 8, 2020 at 2:22 PM Alan Campin <alan0307d@xxxxxxxxx> wrote:

Is the file a real file. Nor a print? Maybe. If real is file ibm file?
Almost sure not.

On Tue, Sep 8, 2020, 10:56 AM Steve McKay <samckay1@xxxxxxxxx> wrote:

Could you add a trigger program to the FTP log file that checks each
record
written for 4xx and 5xx return codes? If found, send a message/do
some error recovery/restart the process/whatever it is you need to do.

Thanks,

Steve McKay
(205) 585-8424
samckay1@xxxxxxxxx



On Tue, Sep 8, 2020 at 1:07 PM Marco Facchinetti <
marco.facchinetti@xxxxxxxxx> wrote:

Hi Darryl, I guess "scripts" means using IBM i Ftp client
redirecting input and output to src files.

If that is the case the answer to your question is no, the only
Exit
Point
available to IBM i Ftp client (and server too) is a requests
validation exit point. The request validation exit points can be
used to restrict operations which can be performed by FTP users.

More info at:



https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzaiq/rzaiqp
svrep.htm
So I guess Alan's answer is the right suggestion. Since you
probably
have
to change a lot of programs don't waste your time tweaking the
scripts
but
change them into something usable via Scott Klemets Ftpapi service
program.
(thanks Scott!)

HTH
--
Marco Facchinetti

Mr S.r.l.

Tel. 035 962885
Cel. 393 9620498

Skype: facchinettimarco


Il giorno mar 8 set 2020 alle ore 18:03 a4g atl
<a4ginatl2@xxxxxxxxx>
ha
scritto:

I have reviewed those procedures and have my own utilities that I
developed
years ago. MyFTP scripts are not the issue. Its the scripts
created
before
my time that I have to work on.

Darryl.

On Tue, Sep 8, 2020 at 11:56 AM Alan Campin <alan0307d@xxxxxxxxx>
wrote:
Have you looked at Scott Kelments FTP Api? It executes the FTP
step
by
step
and is designed so that you can determine if the step worked
correctly.
If
you go to www.think400.dk/downloads.htm and look for project
FTPOBJ
between systems there is an example of using the API.


On Tue, Sep 8, 2020 at 8:41 AM a4g atl <a4ginatl2@xxxxxxxxx>
wrote:
I need a immediate response to read the log file. On many of the
FTP
scripts before my time, the logs were not saved, so I would like
to
break
in and scan the log file.

It seems this is not do-able?

Darryl.

On Fri, Sep 4, 2020 at 7:18 AM Rob Berendt <rob@xxxxxxxxx>
wrote:
Could you query netstat_info and determine that the ftp port
for
that
job
is dormant?


https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzajq/rzajqs
ervicestcpip.htm
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept
1600 Mail to: 7310 Innovation Blvd, Suite 104
Ft. Wayne, IN 46818
Ship to: 7310 Innovation Blvd, Dock 9C
Ft. Wayne, IN 46818
http://www.dekko.com


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On
Behalf
Of
a4g
atl
Sent: Thursday, September 3, 2020 5:15 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: Is there a user exit or something similar that I can
use
to
monitor when a FTP command is complete?

CAUTION: This email originated from outside of the
organization.
Do
not
click links or open attachments unless you recognize the sender
and
know
the content is safe.


We have many FTP processes and we need to know when the FTP
command
has
completed so that we can read the FTP log and look for
failures.
To save modifying hundreds of programs, if there were
something
like
an
exit point that can tell me the transmission is complete, I
could
then
call
a program to read the log and advise if there is a failure.

TIA
Darryl Freinkel
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any
subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any
subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


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.