The debug file should be created each tine I call for example
http_url_post_xml not appended to.

It would appear the unlink is failing but there is nothing in the job log
and the job does not abend/crash and require a response.

I ran the process in debug and the debug file exists, the
unlink(HTTP_DEBUG_FILE) was executed and the file still exists, there was
no error and the value in HTTP_DEBUG_FILE is the correct file name and

How do I determine why the stream file is not being deleted ?

Thanks for any suggestions

Don Brown

From: "Patrik Schindler" <poc@xxxxxxxxxx>
To: "Midrange Systems Technical Discussion"
Date: 01/12/2019 09:16 PM
Subject: Re: httpapi debug file appending not replacing
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx>

Hello Don,

Am 01.12.2019 um 02:16 schrieb Don Brown via MIDRANGE-L

The result of unlink is not being checked - would this be logged to the
job log ?

I guess no, but certainly your program will be sent an exception. If it's
unhandled, the user get's the usual screen about
cancel-continue-debug-whatever or if it's a batch job, it will

How can I determine why the stream file is growing rather than being
recreated on each call to httpapi ?

I don't understand your question. It's a debug log, so it's growing
because of debugging output. If you want to know what's in it, have a
look. If you don't need the debugging, turn debugging off. Or did I miss
something in your question? Maybe you can rephrase your question?

:wq! PoC

PGP-Key: DDD3 4ABF 6413 38DE -

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by 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.