#### 3.15.3 Return Value

The value returned by the `val` program depends on the outcome of the validation as follows :-

0

  Validation succeeded. No problems were detected. A small number of potential problems may exist without causing a non-zero return value; see Validation Warnings, for more information.

1

  The `-m` option was used but the module name did not match.

2

  The `-y` option was used but the module type did not match.

4

  The `-r` option was used but the specified SID was ambiguous, or not present in the history file.

8

  The `-r` option was used but the specified SID was invalid.

16

  Either the named file could not be opened, or it is not an SCCS history file.

32

  The history file is corrupt.

64

  An invalid option letter was used on the command line.

128

  One of the files named on the command line was not present.