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



Hi,

I have the following embedded SQL query :
EXEC SQL
SELECT VARCHAR(Responsemsg, 2048),
VARCHAR(Responsehttpheader, 512)
INTO:Responsemsg INDICATOR:Nullresponsemsg,
:Responsehttpheader INDICATOR :Nullresponsehttpheader
FROM TABLE( Systools.Httppostclobverbose(TRIM(:Url) ,
CAST (:Httpheader AS CLOB(1k)),
CAST(:Requestmsg AS CLOB(10k))));

With
httpHeader = '<httpHeader> +
<header name="connectionTimeout" +
value="120000" /> +
<header name="readTimeout" +
value="120000" /> +
<header name="Content-Type" +
value="*/*" /> +
<header name="Ocp-Apim-Subscription-Key" +
value="' + %trim(ApiKey) + '" /> +
<header name="X-Correlation-ID" +
value="' + %trim(CorrelationID) + '" /> +
</httpHeader>';

It has been running without problem for months but during one run, it "froze" until the processing was stopped 8 hours later.
The logs show that a response was sent but never received by the request.
Question: Is there a way to limit/control the execution time of a query?

Cordialement,

Jean-Marc DUVAL
Pôle développement IT
Développeur IBM i consultant



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.