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



Out of date? Not likely. Wrong? Not necessarily, but probably either unclear or somewhat deceptive. Special case? Maybe. But easy enough to validate the relevance of WAITFILE on CLRPFM processing in normal open cases; i.e. open a member in one job which has WAITFILE(60), and then CLRPFM in another job with DFTWAIT(2). If WAITFILE plays any role, trust that any override is ignored; i.e. data management bypasses that phase for a clear, primarily because the clear member operation has no redirect support to another member [name] except for the special case of open-with-clear. There may be a special case opt-out for sending the close-event if the member attribute [inherited from the *FILE, or as retrieved from the *FILE] suggests that the WAITFILE time is *IMMED, but I do not recall. However I would be willing to bet instead, that the reference to WAITFILE should be DFTWAIT; i.e. indeed that portion of the text is simply wrong. It is as noted, for "IBM Internal Use [only]"; i.e. not intended to be referenced as /documentation/ by a customer, as its review process was not intended to ensure that level of /correctness/.

Regards, Chuck

Charles Wilt wrote:

So the IBM document referenced is wrong/out-of-date?

"What Are the Impacts of Pseudo Closed Cursors? <snip> Shared file
locks even when all cursors are closed: As stated above, a pseudo
closed cursor does not hold any record locks; however, it will
continue to hold a shared lock on the file. In theory, the shared
lock left on the file should have a minimal effect on other applications. Some operating system commands and all SQL statements
that require an exclusive lock (DLTF, DROP TABLE, CLRPFM, and so on)
will cause a pseudo closed cursor to be hard closed so that the lock
is released. Each command that wants to force closing of pseudo
closed cursors causes an event to be signaled if a lock conflict
occurs. This event causes a program to run that hard-closes any
pseudo closed cursors that hold the object. For this to function
correctly, the maximum file wait time (WAITFILE) must be set to a
value other than *IMMED. In general, a value of 1 second or greater
is sufficient (actual time depends on system performance)."

The way I read the above, WAITFILE effects CLRPFM.


On Mon, Feb 9, 2009 at 4:42 PM, CRPence wrote:
Charles Wilt wrote:
On Mon, Feb 9, 2009 at 3:40 PM, Elvis Budimlic wrote:
Nice find. That post supports what you said about CLRPFM hard closing the pseudo closed cursors, provided file's WAITFILE attribute is set to 1 or greater. Based on that, check the
WAITFILE keyword. If that checks out, then perhaps this isn't a
pseudo closed cursor but an open cursor?
>>>
Yes, I've forwarded the info to the other team; recommended
checking WAITFILE and to try the ALCOBJ CONFLICT(*RQSRLS) to see
if the lock goes away.

If the lock doesn't go away that would seem to indicate the
problem is not the result of a pseudo close.

WAITFILE is for open, not for clear. The DFTWAIT of the requesting
job controls the wait time for the clear opeartion [excepting any defects or special cases]. Since both the held lock and the close activity take place in another job, the wait-time must suffice for
those other holders to effect their close activity, plus requires
that no new opens of the file [in that same job or another] since
the close-event was initiated [and received by the holding jobs].
Note also there is an exit program for this event driven close
processing which can choose to prevent\ignore the close request,
which can make a pseudo-closed open act like a normal open.

Thus only "seem to" because... The file may not be allocated using
the request to release the conflict _even if_ it were
pseudo-closed, due to one of: a programmed response to disallow
close, insufficient time allowed in waiting for the close to be
effected, the possibility that another open\close [or another type
of allocation] may have been initiated since the request to close
was initiated.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.