val [ -s ] [ -rSID ] [ -mName ] [ -yType ] File ...
The val command reads the specified file to determine if it is a Source Code Control System (SCCS) file meeting the characteristics specified by the accompanying flags. If you specify a - (minus) for the File value, the val program reads standard input and interprets each line of standard input as val flags and the name of an SCCS file. An end-of-file character terminates input.
The val command displays messages to standard output for each file processed.
Each flag or group of flags
applies independently to each named file. The flags can appear in any
order.
-mName | Compares the Name value with the SCCS 31 identification keyword in the specified file. For identification keyword information, see the get command. |
-r SID | 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 the specified file. |
The val command
returns 0 if successful for all files; otherwise, it returns an 8-bit
code that is a disjunction of the possible errors. It is interpreted as
a bit string in which set bits (from left to right) are interpreted as
follows:
Note: The val command can process two or more files on a given command line and can process multiple command lines (when reading standard input). In these cases, an aggregate code is returned; a logical OR of the codes generated for each command line and file processes.
To determine if file s.test.c is an SCCS text file, enter:
val -ytext s.test.c
List of SCCS Commands in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
The admin command, delta command, get command, prs command.
The sccsfile file format.
Source Code Control System (SCCS) Overview in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.