ADB return codes and warnings
ADB returns 0 for a successful execution, 1 if there are
warnings, or 2 for catastrophic errors (i.e. the job "bombed").
ADB issues warnings only in three cases:
1. An input field is being moved into a shorter output field.
2. You've coded "-LAXPRE" and/or short records have actually
been padded with spaces.
3. An output file exists already, and is being overwritten.
In certain rare situations, warnings of the first and second type
are "normal." There's currently no way to suppress them,
however.
There's no reason why you should get a warning of the third
variety, if you're using the utility FileStat.
When ADB bombs the job on a catastrophic error, it doesn't
"clean up" any temporary files which are currently in use.
This allows you to inspect the files' contents in order to
track down the source of error messages. You can also use
this facility to test your Awk scripts (by deliberately
introducing a syntax error).
If ADB ends with a catastrophic error, it will print the error
message on the screen and into both the log and error files.
Normally catastrophic errors are described in the log file
as:
USER ERROR
If you see this, the next few lines will explain why ADB felt
that the error wasn't its fault.
If you get an error that ADB describes as:
INTERNAL ERROR
in the log file, then
then please write to me at:
rog@NOSPAM_rs-freeware.org.
(Internal errors indicate that there's a bug in the code,
and/or in the way in which errors are being detected and/or
processed.)
Return
to local table of contents
Return
to global table of contents
Frames mode, or
No frames