Deletes rows from an IBIS tabular file
Deletes rows from an imaged based information system (IBIS) tabular file. Values in specified columns are checked against specified ranges. If the value in a given column is in the appropriate range, the row containing that value in the given column is deleted as the input file is copied to the output file.The COLNUM, LOWVAL, and HIGHVAL parameters work together to specify the columns and ranges. The first value in LOWVAL and the first value in HIGHVAL define the range which is used to check the first column entered in COLNUM and so on.
- INFILE
- Input file. Input IBIS tabular file.
- OUTFILE
- Output file. Output IBIS tabular file
- COLNUM
- Column numbers. Columns to be tested for range matching.
- LOWVAL
- Low values of range. Lower limits of the ranges to use in testing COLNUM for deletion.
- HIGHVAL
- High values of range. Upper limits of the ranges to use in testing COLNUM for deletion.
- OFFSET(.01)
- Offset value. This value, which is subtracted from the lower limit and added to the upper limit of each range, is needed due to precision problems encountered when comparing real numbers.
If the values in column 1 are greater than or equal to -3 and less than or equal to 3 (with precision to the hundredth place), the rows containing those values are deleted as IN is copied to OUT.
If the values in column 2 are between 0 and 10 inclusive (with precision to the hundredth place), the rows containing those values are deleted. Also, if the values in column 3 are between 20.5 and 29.9 inclusive (with precision to the hundredth place), the rows containing those values are also deleted.
The program begins with the standard initialization and retrieval of user-specified parameters. The input file is opened, and rows are scanned to determine if they are to be deleted. Any deletions are flagged by storing information in a pointer vector. The input file is copied column by column to the output file using the pointer vector to collapse the columns.
An error was encountered while closing the <XXXXX> file. The data may still be valid.
A fatal error was encountered during processing. The output IBIS tabular file may or may not be valid. The message that is displayed immediately preceding this message is the specific error that was encountered.
Since all the rows in the input file would be deleted, there is nothing to copy to the output file.
An error was encountered while trying to open the specified file.
An error was encountered while trying to read from the input IBIS tabular file.
The LOWVAL, HIGHVAL, and COLNUM parameters work together and the same number of values must be entered for each one.
An error was encountered while trying to write to the output IBIS tabular file.