|
The SNDTCPF command by Julian Monypenny (News/400 Aug/95) also has a corresponding RCVTCPF command. You should be able to download the code from www.news400.com Neil Palmer AS/400~~~~~ NxTrend Technology - Canada ____________ ___ ~ Thornhill, Ontario, Canada |OOOOOOOOOO| ________ o|__||= Phone: (905) 731-9000 x238 |__________|_|______|_|______) Cell.: (416) 565-1682 x238 oo oo oo oo OOOo=o\ Fax: (905) 731-9202 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mailto:NPalmer@NxTrend.com AS/400 The Ultimate Business Server http://www.NxTrend.com > -----Original Message----- > From: Kathleen Kostuck [SMTP:kkostuck@execpc.com] > Sent: Friday, May 29, 1998 8:21 PM > To: MIDRANGE-L@midrange.com > Subject: Re: FTP Error Checking > > 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 +---
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.