Check archive scenes for extra lines.
Check archive scenes for extra lines. This program was developed as a way to check archived scenes on tape for inconsistencies in the actual number of lines archived and the number of lines that should have been written.
- OUTDIR
- The working directory where archived scenes are placed. Scenes will be read from tape into this directory and removed once processing is complete.
- NTAPES(14)
- The number of tapes mounted in the stacker. This value is used as a loop control to mount each tape in turn. The default is the stacker maximum 14.
- DRIVE(--)
- The drive number where the tapes are stacked. If NULL a mount request is sent to the operator.
It is assumed that a stacker has been loaded with the maximum number of tapes on drive 4. The scenes will be read from tape and placed in the working directory [sg1.km1.test.ckarch].
It is assumed that a stacker has been loaded with 5 tapes on drive 4. The scenes will be read from tape and placed in the working directory [sg1.km1.test.ckarch].
The operator will be prompted to mount a tape. Pre-coordination with the operator will be necessary so the correct tape will be mounted. The scenes will be read from tape and placed in the working directory [sg1.km1.test.ckarch].
If a drive is specified, it is assumed that NTAPES are mounted and ready to be read. If no drive is specified then a mount request is sent to the operator. Each tape is mounted and the scenes are read using READARCH_ and placed in the working directory. Once the scenes from each tape are read, each scene is processed as follows: 1) the time stamps from the first and last line are extracted and a line count is determined; 2) the actual number of lines in the file is determined from the file size; 3) the log file is updated indicating SUCCESS, the line counts matched, or FAILURE, the line counts did not match; 4) finally, the scene is deleted from the working directory.
[working.dir]ah11060192065256 09/04/97 14:38:40 XXXXXX Lines expected: YYYY Actual: YYYY
where XXXXXX is either SUCCESS or FAILURE and YYYY is some number, contain the information needed to investigate the impact of the INGEST bug. SUCCESS, FAILURE, and Lines expected are unique identifiers of these lines and may be used to grep the log file. These are single lines.