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

RE: Getting currency rates



It seems that a time out will generate a CPF9897 error:


 Message ID . . . . . . :   CPF9897       Severity . . . . . . . :   40
 Message type . . . . . :   Escape
 Date sent  . . . . . . :   09/24/08      Time sent  . . . . . . :
10:30:21

 Message . . . . :   CommTCP_read: time-out!
 Cause . . . . . :   No additional online help information is available.


but if you are getting a hit with a questionable rate (or getting a hit but
no rate is returend), then I would think that needs to be handled
programatically.

I would also think for a questionable rate, you would want someone to
manually review it and either sign off on it or force a call to a backup
site.



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Adam West
Sent: Wednesday, September 24, 2008 10:21 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Getting currency rates


Michael, the issue is more on the CL. If I have a backup, it should be OK.
Only once did this Xurrency site go down and that was bec. he had to re-up
the domain charges. For that matter I have to check that the data is
reasonably good, i.e. suppose the rate they send is absurd like 0. or if it
is substantially less than the day before. Suppose the Canadian $ is
currently 1..034, if tommorow it comes in as 50 cents, that would probably
be a problem..So i need a normalcy checker program as well, and that is with
a paid service also.

in the cl

1.00              PGM                                                       
2.00     /*    GOES TO WEB SITE WWW.XURRENCY.COM AND PULLS RATES */  
3.00              ADDLIBLE   LIB(LIBHTTP)                                   
4.00              MONMSG CPF0000                                            
5.00     /* USDCONV IS FIRST BUILT IN PGM SO REMOVE IF EXISTS            */ 
6.00              DLTF       FILE(QTEMP/USDCONV)                            
7.00              MONMSG CPF0000                                            
8.00              CALL       PGM(OBRFORC)            ( this is Craig's
program that pulls those rates. )
                       
right here I need to monitor if there was some problem with getting the info
from that web site. That's my question what system messages should I monitor
for?

----- Original Message ----
From: Michael Ryan <michaelrtr@xxxxxxxxx>
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, September 24, 2008 9:39:31 AM
Subject: Re: Getting currency rates

Use a paid service. That's the problem with web stuff like that. Like
anything else, money is a motivator. A company that's being paid to
provide a service is more likely to have a reliable service.

On Wed, Sep 24, 2008 at 9:30 AM, Adam West <adamster@xxxxxxxxx> wrote:
>
>  This situation could always happen again.
>
>  What sort of Message should I monitor for in the CL? in case it
>  aborts, then I can take action or run a backup site.
>
>  Thanks.
>  Adam
>  ----- Original Message ----
>  From: Adam West <adamster@xxxxxxxxx>
>  To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
>  Sent: Thursday, August 28, 2008 2:01:20 PM
>  Subject: Re: Getting currency rates
>  Thank you, Scott. It does appear that it is back up. This raises the
>  question what do other places do for a backup to such a foreign
>  currency site? if it does down for whatever reason.
>
>  Does any web site feed work with that code?
>  --- On Thu, 8/28/08, Scott Klement <sk@xxxxxxxxxxxxxxxx> wrote:
>
>    From: Scott Klement <sk@xxxxxxxxxxxxxxxx>
>    Subject: Re: Getting currency rates
>    To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
>    Date: Thursday, August 28, 2008, 4:29 PM
> I did some looking around...
>
> [1]xurrency.com's web site is down, but their domain name is not expired.
>
> It appears that the site is hosted by [2]http://www.hostgator.com -- which
> is a company that provides web servers for anyone to use.  You pay them,
> and they provide you a web server that you can use to host your web site.
>
> It appears that [3]hostgator.com has suspended xurrency.com's service.
> Hard to say why -- either xurrency.com is in the progress of moving to a
> new site, or they stopped paying hostgator, or they broke some of
> hostgator's usage rules...  hard to know.
>
> At any rate, this is not a problem with HTTPAPI or your program.
>
>
> Adam West wrote:
>>    OK when I try to go that web site I get that it's a suspended
> account
>>    or something.
>>
>>
>>    so either they are down or we did't pay the fee to them.
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> [4]http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
> References
>
>  1. http://xurrency.com/
>  2. http://www.hostgator.com/
>  3. http://hostgator.com/
>  4. 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
> -----------------------------------------------------------------------
>
>
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------