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



Chuck,

One other thing, the internal document is the only one say WAITFILE is
a factor. This one:
http://www-912.ibm.com/s_dir/slkbase.NSF/96919068949082bf8625680b0002036e/4c7e1e2f94136bdd86256c6200577243?OpenDocument

Also discusses WAITFILE(*IMMED) and pseduo-close, but doesn't mention CLRPFM.

Charles

On Tue, Feb 10, 2009 at 8:48 AM, Charles Wilt <charles.wilt@xxxxxxxxx> wrote:
Chuck,

Testing CLRPFM on an open file does confirm that DFTWAIT for the job
doing the CLRPFM and not WAITFILE on the file determines how long till
the CLRPFM fails.

However, I'm not sure that proves anything. I think it's possible
that things are difference with a pseduo-closed file. Otherwise, the
document in question hasn't just confused DFTWAIT and WAITFILE, but
the whole section makes no sense.

The point of the section is that you have to allow the system some
time to hard close the pseudo-closed file; thus make sure WAITFILE is
not *IMMED but is at least 1. On the other hand, DFTWAIT doesn't have
*IMMED or 0 available as a valid, it is always at least 1. So if
DFTWAIT is the controlling factor, then the whole section is
pointless.

So, based on your experience, do you think pseduo-closed files are a
special case, or is that whole section of the document is a pipe
dream?

I tried to test CLRPFM and pseudo-closed cursors myself, however even
with the file set to WAITFILE(*IMMED) and the job set to DFTWAIT(1),
the CLRPFM didn't fail.

Charles

On Mon, Feb 9, 2009 at 5:46 PM, CRPence <CRPbottle@xxxxxxxxx> wrote:
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.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.