Data Commands

Copy

Copies the data file of an active study causes a copy of the data file for the study specified to be created. An active data file, one from a study that has not been shut down (SDS), is not generally available for use. Active data files are only available in Share mode; they can be read from but not written to by other processes. The COPY option facilitates analysis on a currently active study.

Syntax:

COPY <studyname> <newname>

where <studyname> is the original study name and <newname> is the name of the to-be-created copy of the data file. The new file will have an automatic extension of TR. You can use fully qualified file names.

Example:

COPY bank banknew

NOTE: The COPYFILE utility can be used for this function as well as having other copying options.

Fix_Suspend_With_Blow/FSWB

Used in conjunction with the parmfile option “afterblow: suspend”.  Issuing this command will cause the super to tell the server to take a record in which Survent had a blow and make its final status 0 so that it is usable again.

Syntax:

FSWB <studyname> <password> <name>

Salvage

Tries to recover a lost interview.

Syntax:

SALVAGE <ldev>

Save_Incremental_Data

Saves “current” data file to the “last” data file to get incremental data sets for tabulations. When the command is issued, the Survox server will close the current/<study>.tr and append it to the last/<study>.tr and a new current/<study>.tr will be started. This is especially useful for running reports on the most recent data instead of reading the complete data set.

Syntax:

SAVE_INCREMENTAL_DATA <studyname>

Server: Fastcopy

Creates a copy of a study data TR file using system commands, which increases the copy speed by a factor of 50 or so.

Syntax:

SERVER:FASTCOPY <studyname> <output datafile name>

The output datafile name may be a fully qualified name to put the file in other directories. Do not include the .tr extension on the filename as that will be provided automatically. You can use this to copy large files quickly.

Server: Log <Filename>

Closes the current server log file and starts a new one. If you specify a name it creates the new file with that name. This is useful to look at a log file immediately after a problem has occurred without taking the server down.

Syntax:

SERVER:LOG

View

View completed interviews.

Syntax:

VIEW <studyname>

You will be prompted for what case to view and which questions. Responses can be altered if it is allowed.

See Interview Control Commands – View for more information.

NOTE: You can put a password on any study that will be prompted for when the supervisor tries to view the study.