RM> What is Binkley, then? It returns all sorts of non-zero values for
RM> non-error conditions.
PE> Binkley uses MSDOS/OS2/whatever-specific errorlevel capabilities.
RM> I know it's a bit off topic (cringe), but what is the significance
RM> of return values in other operating systems?
In MVS, return codes range from 0 to 4096 from memory, and don't really
mean anything in isolation, although convention is that you use 0 for
success, 4 for a warning, 8 for a severe error, 12 for a fatal error, and I
think 16 for an unrecoverable failure. You will find that in JCL, people
often have something that says "abort the job if the return code is
greater than 4". Which is why if you have a small utility as one of
the 40 steps in your job, you expect it to return 0, and not some random
value (as you get if you had gone "void main"), which is why I
get a bit nasty at times. In VMS, I *believe* that even numbers represent
errors, odd numbers don't. BFN. Paul.
P.S. There's nothing off-topic about this!
@EOT:
---
* Origin: X (3:711/934.9)
|