Re: "file locked by another user" mystery
- From: briggs@xxxxxxxxxxxxxxxxx
- Date: 31 Jan 2008 07:24:54 -0600
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.
.
- References:
- "file locked by another user" mystery
- From: tadamsmar
- Re: "file locked by another user" mystery
- From: tadamsmar
- Re: "file locked by another user" mystery
- From: Richard B. Gilbert
- Re: "file locked by another user" mystery
- From: tadamsmar
- Re: "file locked by another user" mystery
- From: AEF
- Re: "file locked by another user" mystery
- From: Fred Bach
- Re: "file locked by another user" mystery
- From: briggs
- Re: "file locked by another user" mystery
- From: Fred Bach
- Re: "file locked by another user" mystery
- From: briggs
- Re: "file locked by another user" mystery
- From: Fred Bach
- "file locked by another user" mystery
- Prev by Date: Re: Restricting Access to TCP/IP and DECnet
- Next by Date: Re: HELP: VMS as an NFS client to Windows or Linux - primer please
- Previous by thread: Re: "file locked by another user" mystery
- Next by thread: Re: "file locked by another user" mystery
- Index(es):
Relevant Pages
|