[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: FTP Error 10



You probably figured this out...
Because you are calling a generic handler for every procedure, the confusion over where exactly it is bombing is expected.

Although it is not much help with your actual problem, three suggestions.

1. Pass a marker to FTPError to let it know what procedure it bombed in and add that to the return message.
2. Have FTPError blow up with an escape message. Not as elegant as trapping the error but much friendlier to debug as you can be immediately aware of the issue. Along with the marker...you can know exactly the status of the program and a dump may provide other useful information.
3. I don't recall with the logging in FTP but I added timestamps in the httpdebug messages without too much trouble. Adding a timestamp could be useful information in this case.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Straus, Barb
Sent: Wednesday, October 24, 2012 9:29 AM
To: HTTPAPI and FTPAPI Projects
Subject: RE: FTP Error 10

I took out some extraneous info in the program and took out a little too much.  Sorry for the confusion.

The ftp_quit is in the EndPgm subroutine.

// End program.
begsr EndPgm;
  if Sess >= 0;
    FTP_quit(Sess);
  endif;
  *inlr = *on;
  return;
endsr;


Thanks,
Barb


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Loek Maartens
Sent: Wednesday, October 24, 2012 10:00 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: FTP Error 10

Hi Barbara,

Could you also provide your endpgm subsoutrine?

If the put ends abnormally, then what does the endpgm subroutine do?

Loek.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated.


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------