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



Kathleen

At 07:21 PM 5/29/1998 -0500, you wrote:
>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).     

Do you mean FNDSTRPDM? Or is this another NEWS400 utility? I'd like to know
more.

>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

In the Unix world, a program called grep is used to test whether a certain
string is contained in a file, in this case, the output file. I've always
read through the output, but I like what Kathleen suggests, maybe modifying
it to be a program or module that can test for the string you want in
whatever file.

Cheers

Vernon Hamberg
Systems Software Programmer
Old Republic National Title Insurance Company
400 Second Avenue South
Minneapolis, MN  55401-2499
(612) 371-1111 x480


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