Re: "file locked by another user" mystery



In article <fnr1lk$5jq$1@xxxxxxxx>, Fred Bach <bach@xxxxxxxxx> writes:
briggs@xxxxxxxxxxxxxxxxx wrote:
In article <479FB364.4010505@xxxxxxxxx>, Fred Bach <bach@xxxxxxxxx> writes:

[snip]


One thing that IS important to know is that after an "ON"
condition is acted upon, the last pertinent ON statement is
more or less rendered 'cancelled' by its having its specified
action taken. The ON condition executed then returns to its
default condition, so another set of ON ... statements is
frequently needed. Now even though the HELP confirms this,
that IS something that I learned the hard way. And I had
built myself a little DCL test procedure to prove it and in
some of my coding you would find a block of ON conditions
repeated many times. The code looks funny, too. How does
a fellow set the *default* ON conditions themselves??

The default ON is "ON ERROR THEN EXIT"

That continues sequential execution on warnings.
And it exits on errors and severe errors.

Many thanks for all the great ideas about $STATUS and $SEVERITY !
You know, I will be using them. Looks like I've got a lot of editing
to do....

Is there some way to start a completely new daughter (or detached)
DCL process where these ON conditions can be set to default to
something other than ON ERROR THEN EXIT? Thanks.

Well, you can redefine "EXIT" as a DCL SYMBOL.

Tested -- it actually works and affects the behavior of the default
"ON ERROR THEN EXIT" handler. Using this technique, testing shows that
the default handler is re-enabled as often as needed. It is not
a "one-shot" like the user-specified ON <severity> THEN handlers.

Obviously, that approach is not very practical.

No, I don't know of any way to control what ON <severity> THEN
handler DCL reverts to after a user-specified ON <severity> THEN
handler is activated.
.



Relevant Pages

  • Re: Infinite Loop in ErrorHandler That Requires Hard Shutdown
    ... > others and have come up with the following Exit Handler and Error ... > If bInTrans Then 'Rollback if the transaction is active. ... > I thought I was handling my Error Handling and Exit Handling ...
    (microsoft.public.access.formscoding)
  • Re: Threading Issues (If you can answer this, Ill kiss you.)
    ... sent it is not read from the message queue and your SessionEnding handler is ... On the other hand when you register for the process exit event the system ... process exits a threadpool thread then calls your event handler. ... specifically to handle the broadcast messages. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Flaw in Conditions System?
    ... > | silent on this. ... Unless there's some implicit block I missed. ... consequence of that non-local exit but I'm still in my handler code. ...
    (comp.lang.lisp)
  • funny SIGCHLD behavior
    ... I'm trying to implement a simple shell and am facing some ... SIGCHLD must get sent to the handler. ... to exit. ... * cmdbuf as required by execvfunctions ...
    (comp.unix.programmer)
  • Re: Newbie exception handler question
    ... You want to install a rundown handler ... Control-C or control-Y do not, in and of themselves, terminate your ... exit, the rundown handler will take care of it, even if the command ... An ordinary exit handler will not be ...
    (comp.os.vms)