Administrative functions > Creating and maintaining Quanvert databases > Compressing Quanvert Text .inc files
 
Compressing Quanvert Text .inc files
Quick reference
To compress Quanvert Text .inc files, type:
qvshrinc [–k] [–s] [–x] file1 [file2 ... ]
Filenames do not include the .inc suffix.
Note The qvshrinc program is distributed with Quanvert Text.
More information
.inc files store the values of numeric variables for a Quanvert database and can be quite large. If the files contain only integers, you can reduce their size by compressing them with qvshrinc. Type:
qvshrinc [–k] [–s] [–x] file1 [file2 ... ]
Type the main part of each file name, not the .inc suffix.
The compressed version of each file overwrites the original version. As files are compressed, qvshrinc displays messages naming files and any action taken. Options on the command line change one or both these behaviors:
Option
Explanation
–k
Keep a copy of the original file in a file called name.old.
–s
Run silently; no messages are displayed.
–x
Display a summary of usage.
The rates of compression vary according to the range of values found. Values in the range 0 to 255 result in a reduction of approximately 75% (although this varies from computer to computer) in the file size. This does not mean that the file must contain numbers between 0 and 255 specifically; rather that the difference between the highest and lowest values in the file must be in the range 0 to 255. For example, if the lowest value is 500 the highest may then be up to 755 in order for a 75% reduction to be possible.
Similarly, values in the range 0 to 65535 result in a reduction in size of around 50%.
Files with ranges of values larger than 65535 cannot be compressed.
See also
Creating and maintaining Quanvert databases