val(1)								       val(1)



NAME
  val - Validates Source Code Control System (SCCS) files

SYNOPSIS

  val [-midentifier] [-rSID] [-s] [-ytype ...] file ...	 | -

  The val command reads files and determines whether each specified file is
  an SCCS file meeting the characteristics specified by the flags.

FLAGS

  Each flag or group of flags applies independently to each named file.	 The
  flags can be entered in any order.

  -midentifier
      Compares the value identifier with the SCCS %M% identification keyword
      in file.	See the get command for more information on the %M% keyword.

  -rSID
      Specifies the SID (SCCS ID) 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 %Y% identification keyword in
      file.  See the get command for more information on the %Y% keyword.

DESCRIPTION

  If you specify a - (dash) for file, val reads standard input and interprets
  each line of standard input as val flags and the name of a file.  An End-
  of-File key sequence terminates input.

  The val command displays error messages to standard output for each file
  processed.  The val command 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 argument

  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%, -y mismatch

  bit 7
      %M%, -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 pro-
  cessed.

EXAMPLES

  To determine if file s.test.c is an SCCS text file, enter:

       val -ytext s.test.c


  or:

       val -
       -ytext s.test.c
       


  where  is the End-of-File key sequence.

RELATED INFORMATION

  Commands:  admin(1), cdc(1), comb(1), delta(1), get(1), prs(1), rmdel(1),
  sact(1), sccsdiff(1), sccshelp(1), unget(1), what(1).

  Files:  sccsfile(4).

  Programming Support Tools