From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,d12c737003eaeb1 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,d12c737003eaeb1 X-Google-Attributes: gid1164f8,public From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) Subject: Re: Successful and not successful completion Date: 1995/08/12 Message-ID: <40isbr$4eg@gap.cco.caltech.edu>#1/1 X-Deja-AN: 108033758 distribution: world references: <1995Aug9.192334.1@sldb5.slac.stanford.edu> <40c5ab$er4@caip.rutgers.edu>,<1995Aug11.105442@genrad.co.uk> organization: HST Wide Field/Planetary Camera reply-to: carl@SOL1.GPS.CALTECH.EDU newsgroups: comp.os.vms,comp.sys.dec 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.