Storing variables in subdirectories
Quick reference
To store variables in subdirectories on UNIX and Windows, create a file called numdir.qv containing the number of subdirectories you require.
More information
You can indicate that axes, numeric and text variables and named filters should be stored in subdirectories to avoid cluttering up the main project directory. To do this, create a file called numdir.qv containing the number of subdirectories you want: any value from 1 to 99 is valid. You must create this file before you flip the database so that the program knows how many subdirectories to create.
When the flip program is running, it creates the given number of subdirectories naming them subdnn.qv, where nn is a number in the range 0 to the number you defined in numdir.qv. As variables are flipped, the files associated with them are placed in these subdirectories. There is no need for users to know which subdirectories contain which files since Quanvert takes care of this itself.
If you flip a job with subdirectories and you later want to change the number of subdirectories (for example, if you are about to add extra variables via qvmerge or via commands within Quanvert itself):
1 Create a new project directory and, in it, a file called numdir.qv containing the new number of subdirectories required.
2 Run qvmerge to copy the whole of the original directory into the new one.
For more information on merging variables into databases, see
Adding new or amended variables to a database.
3 Delete the old directory and qvmerge and/or create new variables in the new directory. These variables are allocated to subdirectories according to the new number.
You can merge variables (using the program qvmerge) from databases with different numbers of subdirectories, or even between one with subdirectories and one without. This is also true when using mflip. Each database that makes up a multiproject database may have its own numdir.qv (or none at all) as may the multiproject database itself, and the numbers of subdirectories in each may be different.
In order for the flip process to work with subdirectories, you must ensure that each user’s $QTHOME/bin contains the version of quanflip (UNIX) or quantum.bat (Windows) which make calls to a program called qvaxmove. Without this, the .ax files are not moved into the subdirectories and the programs in the Quanvert suite fail.
See also