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



So I have a stmf file opened in my exit pgm registered to
QIBM_QP0L_SCAN_OPEN.
I want to clear that file... and then later write to it further in the exit
pgm.
I do a ftruncate64() in my exit pgm and if I do a wrklnk and look at the
bytes, it did clear it and set the bytes to 0.
Good...
But when I later write to the file later on in the exit pgm, the data I
thought I cleared returns and my new data appends to it.

Is this because the file was never closed before the new data was written
to it?
How can I ensure it is cleared and then allowed to write to in this same
exit pgm without the ability to close it before the write?

Is there some functionality with the below exit pgmoutput ds fields that
can be set to allow my clear to "stick"?

8 8 CHAR(1) Update object scan information
9 9 CHAR(1) Scan status


tia

Jay

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.