VAL(1s,C) AIX Commands Reference VAL(1s,C)
-------------------------------------------------------------------------------
val
PURPOSE
Validates Source Code Control System (SCCS) files.
SYNTAX
+------------+
val ---| +--------+ |-- file --|
+-| -mname |-+ ^ |
^| -rSID || +------+
|| -s ||
|| -ytype ||
|+--------+|
+----------+
DESCRIPTION
The val command reads files and determines if the specified file is a Source
Code Control System (SCCS) file meeting the characteristics specified by the
flags. If you specify a - (minus) for file, val reads standard input and
interprets each line of standard input as val flags and the name of an SCCS
file. val continues to take input until it reaches an end-of-file character
(Ctrl-D).
The val command displays error messages to standard output for each file
processed. val also returns a single 8-bit code upon exit. The 8-bit code
indicates possible mismatches or errors. It is interpreted as a bit string in
which set bits (from left to right) are interpreted as follows:
bit 0 = missing file parameter
bit 1 = unknown or duplicate flag
bit 2 = damaged SCCS file
bit 3 = cannot open file or file not SCCS
bit 4 = SID is invalid
bit 5 = SID does not exist
bit 6 = , -y mismatch
bit 7 = val.1s, -m mismatch
When val processes two or more files on a given command line or multiple
command lines (when reading the standard input), a code is returned that is a
logical OR of the codes generated for each command line and file processed.
val can process up to 50 files on a single command line. Any number above 50
produces a dump.
Processed November 8, 1990 VAL(1s,C) 1
VAL(1s,C) AIX Commands Reference VAL(1s,C)
FLAGS
Each flag or group of flags applies independently to each named file. The
flags may appear in any order.
-mname Compares the value name with the SCCS val.1s identification keyword in
file. See "Identification Keywords" for more information on the val.1s
keyword.
-rSID Specifies the SID of the file to be validated. The SID must be valid
and unambiguous.
-s Suppresses the error message normally written to standard output.
-ytype Specifies a type to compare with the SCCS identification keyword
in file. See "Identification Keywords" for more information on the
keyword.
RELATED INFORMATION
See the following commands: "admin," "delta," "get," and "prs."
See the sccsfile file in AIX Operating System Technical Reference.
See the discussion of SCCS in AIX Operating System Programming Tools and
Interfaces.
Processed November 8, 1990 VAL(1s,C) 2