From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
Subject: Re: Successful and not successful completion
Date: 1995/08/12 [thread overview]
Message-ID: <40isbr$4eg@gap.cco.caltech.edu> (raw)
In-Reply-To: 1995Aug11.105442@genrad.co.uk
In article <1995Aug11.105442@genrad.co.uk>, dongray@genrad.co.uk (Derek Dongray) writes:
=This is not true. There are many reasons why one might want to return
=different levels of "abort":
=
= exit(41) %SYSTEM-S-ABORT, abort The user requested an operation
= be aborted rather than exiting
= normally, This was handled
= successfully.
=
= exit(43) %SYSTEM-I-ABORT, abort Same as above, but since the
= abort is not normally used we
= flag it for information.
=
= exit(40) %SYSTEM-W-ABORT, abort Everythings's probably OK, but
= the user should be warned that
= aborting is not recommended
=
= exit(42) %SYSTEM-E-ABORT, abort The program should not have
= been aborted. Something is wrong.
=
= exit(44) %SYSTEM-F-ABORT, abort Something is seriously wrong!
Actually, my take on the severities is a bit different:
0 Warning: Whatever was done apparently did the right thing, but
perhaps not what you expected. For example, if you
attempt to delete a non-existent file, you get the
right result: The file you specified isn't there.
But perhaps that's not quite what you intended;
1 Success: Whatever was done apparently did both the right and
the expected thing;
2 Error: The right thing wasn't done, but you MAY be able to
continue as if it had been, and so attempting isn't
terribly likely to get you into immediate serious
trouble.
3 Informational: The right and expected thing was done, but you asked
(perhaps by default) for the program to tell you what
it was doing. See, for example, DEFINE/LOG vs.
DEFINE/NOLOG when you supersede a previously defined
logical name.
4 Severe error: The right thing wasn't done, and it would almost
certainly be a mistake to continue as if it had been.
=Of course, since the routine to find a file is looking for a named file,
=the positive return is when it finds it (return status 65537,
=%RMS-S-NORMAL, normal successful completion) and not finding a file is
=considered failure (returns 98962, %RMS-E-FNF). Any of the status messages
=can normally have the severity bits changed to reflect the required
=state, although in many (most?) cases this does not make sense! E.g. what
=would status 545, "%SYSTEM-S-TAPEPOSLOST, magnetic tape position lost"
=mean?
It could mean that your tape exercising program successfully found a way to
make the tape fail.
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
understanding of astronomy is purely at the amateur level (or below). So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it. If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
next prev parent reply other threads:[~1995-08-12 4:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-08-10 4:00 Successful and not successful completion fairfield
1995-08-10 4:00 ` halasz
1995-08-10 4:00 ` fairfield
1995-08-10 4:00 ` Jeffrey L. Sue
1995-08-11 4:00 ` Derek Dongray
1995-08-12 4:00 ` Carl J Lydick [this message]
1995-08-12 4:00 ` Carl J Lydick
1995-08-14 4:00 ` Stephen Hoffman
[not found] ` <950811113507.608e@alpha.vitro.com>
1995-08-17 4:00 ` halasz
1995-08-24 4:00 ` System Manager
-- strict thread matches above, loose matches on Subject: below --
1995-08-09 4:00 caip.rutgers.edu!halasz
1995-08-12 4:00 ` Carl J Lydick
1995-08-12 4:00 ` Dan Pop
1995-08-12 4:00 ` Carl J Lydick
1995-08-12 4:00 ` Dan Pop
1995-08-12 4:00 ` David P. Murphy
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox