Administrative functions > Data conversion programs > Converting Quantum data and programs with nqtsas
 
Converting Quantum data and programs with nqtsas
Quick reference
To create an nqtsas data description and data set, run Quantum using the version that does not delete its intermediate files (or use the –k option with the standard version). Then type:
nqtsas [options]
More information
nqtsas is a variation of qtsas which converts a Quantum spec and data file into an SAS data description and transformed data set. Enhancements include:
facilities for dealing with subaxes
fixed or free format SAS data
user-definable length and precision for numeric values
control over the creation of binary variables from axes.
All enhancements are available via options on the command line:
Options
–G1
When an axis is exploded into a binary variable, create an SAS format clause without a corresponding variable in the variable list.
–G2
As G1, except that variable labels and formats for binary variables are excluded from the SAS commands file.
–g
Create format clauses for binary variables and include their variable labels in the commands file. This is the default.
–U
Elements in subaxes contribute once only to the SAS data description and data set.
–u
Elements in subaxes contribute to the data description and data set once for every subaxis in which they appear. This is the default.
–A
Ignore subaxes. Elements in subaxes are assumed to be part of the main axis only.
–f
Create a free format data set.
–F
Create a fixed format data set. This is the default.
–Wn
Create numeric variables with n digits. The default is 8 digits.
–Pn
Create real variables with n decimal places. The default is 2 decimal places.
–O
Behave as the existing qtsas.
–mchar o–Mchar
Defines the character to represent missing data. The default is a dot.
–b or –B
Show missing values as blanks.
Preparing and running an nqtas job
Preparing and running an nqtsas job are as described above for qtsas, except that you list the option you want to use at the end of the nqtsas command. For example:
qtsas -W3 -f
to create a free format data set with numeric values shown as 3-digit values.
SPSS output from nqtsas
If you copy or rename the nqtsas program to nqtspss, it generate SPSS output instead. If you want to keep the original nqtspss program, remember to rename it before you copy or rename qtsas.
See also
Data conversion programs