This function in the GainSeeker Utility module lets you export a selected range of data. Optionally, you can select to delete the data after it has been exported. The process is automated by using command line parameters. Once set up, the automated export be called from a shortcut or a scheduled task.
There are three mandatory parameters. They are Export, Type, MonthsToRetain. All others are optional.
Include only parameters in the command line that you want GainSeeker to automatically execute.
Replace words and characters shown in italics with the name of the item you want to open, and enclose the name with quotation marks as shown below.
Insert a blank space between parameters in the command line.
These parameters can be used in conjunction with Login and Startup parameters.
The export utility will automatically close when the export is complete.
SPC or DMS
Export="filename" GainSeeker exports the data to the path and filename you specify (for example: Export="Q:\backup\data.xml"). Export always uses XML format. It must be a valid filename and the specified path must exist. The Windows user must have rights to create a file in the specified folder. The filename should be in quotation marks. The current date will be appended to the file name, so the above example would create a file named Q:\backup\data_20260101.xml on January 1, 2026.
The MonthsToRetain parameter is used to calculate the end date of the data to be exported. For example, MonthsToRetain=12 will go back 12 months from the current day and set that as the end date. It will then export all data prior and up to the end date. If you run the utility on January 1, 2026 then the system will export all data prior to January 1, 2025. If deleting data, it will use the same end date.
If Yes, the data is deleted after it is exported. If the given file does not exist after the export or the file size is zero, the data is not deleted.
This parameter is optional. If it is not included, the data is not deleted.
The Filter parameter is used to restrict the data to data points that only meet the criteria you set for a traceability field, corrective action, bypass, date/time, or part number/process. The filter must be previously created and exist in the GainSeeker System. The list of filters is different for DMS and SPC. The filter name should be in quotation marks, such as Filter="Shift 2".
The following parameters will export all SPC data that is older than two years and was entered as Shift 2. It will not delete the data after exporting it.
export="Q:\backup\data.xml" type="spc" monthstoretain=24 filter="shift 2"
The following parameters will export all DMS data that is older than 12 months and was entered for Machine 553221. It will delete the data after exporting it.
export="Q:\backup\machine_data.xml" type="dms" monthstoretain=12 filter="Machine 553221" delete=yes
See also Automatically export control files
See also Table of all parameters