|
Eric,
I found a command in NEWS/400, don't recall if it was on the web site or if
I took it off of their CD, called SNDTCPF. (Thank you, Julian Monypenny!)
It does some error handling. Of course, this command handles a send, but I
think there must have been a companion command which does a get. Either
way, you could modify this, or steal the error handling code for your own
program.
It basically does a FNDSTRM over your output member, looking for the string
'Transfer complete', and checks the RTNRCD variable for = 0. If it's 0,
then it does a SNDPGMMSG indicating that the file wasn't sent (in your
case, received).
Hope this helps,
Kathleen Kostuck
___________________
pager (414) 402-0820 fax (414) 495-4986
kkostuck@execpc.com
AS400 Solutions
Secretary - Wisconsin Midrange Computer Professionals Association
___________________
----------
> From: Eric <Eric@norcov.com>
> To: 'midrange-l@midrange.com'
> Subject: FTP Error Checking
> Date: Friday, May 29, 1998 2:44 PM
>
> I just completed a CL that will GET a file from a Unix system and
transfer
> it to the AS/400. It works well but I don't see how to go about
monitoring
> for error messages. It doesn't seem that I can use the conventional
MONMSG
> command in the CL (can I?). Is there a way other than having to sift
> through the output file looking for 4XX and 5XX error codes?
>
> Any assistance is appreciated. Thanks in advance.
>
> Eric Kempter
> Director of MIS
> Commair Mechanical Services
>
> Use J.D.Edwards? Subscribe to the JDEList Mailing List. Place
'subscribe"
> in the subject line of your e-mail and send it to JDELIST@IBM.NET .
>
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
david@midrange.com
> +---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.