Exporting grid axes in Quanvert
Quick reference
If you want Quanvert to export a grid axis to SAS or SPSS on a row-by-row basis rather than a column-by-column basis, place the keyword:
byrows
on the l statement for that axis. This keyword has no effect on the Quantum tables.
More information
When a Quanvert user exports a grid axis in SAS or SPSS format, Quanvert exports it on a column-by-column basis so that each cell of each column becomes a separate SAS or SPSS variable. For example, if the grid axis is defined in Quantum as:
l rating1
n01Brand A;col(a)=123
n01Brand B;col(a)=124
n01Brand C;col(a)=125
side
col a00;Base;Excellent;Very good;Satisfactory;Poor
Quanvert creates one SAS or SPSS variable per brand. However, if the grid is specified as:
l rating2
n01Excellent;punch(p)='1'
n01Very good;punch(p)='2'
n01Satisfactory;punch(p)='3'
n01Poor;punch(p)='4'
side
n10Base
n01Brand A;c=c123'p'
n01Brand B;c=c124'p'
n01Brand C;c=c125'p'
each variable would contain data from more than one column of the data (it would be multicoded) so Quanvert creates one variable for each cell of the column instead. In this example, the SAS or SPSS data contains one variable for each combination of brand and rating, for example, Brand A Excellent, Brand A Very good, and so on.
With this example, it is not a problem to write the grid in the first format so that the SAS or SPSS data contains one variable per brand which is usually what is required. However, not all grids are as simple, so Quantum allows database administrators to flag grid axes that need to be exported in Quanvert on a row-by-row basis rather than in the standard column-by-column way. The keyword that does this is byrows and it is used on the l statement. It has no effect in Quantum.
Using the examples shown here, if you did not want to rewrite the rating2 axis as it was shown in the example called rating1, you could add byrows to the l statement of rating2 to achieve the same set of SAS or SPSS variables in Quanvert:
l rating2;byrows
n01Excellent;punch(p)='1'
n01Very good;punch(p)='2'
n01Satisfactory;punch(p)='3'
n01Poor;punch(p)='4'
side
n10Base
n01Brand A;c=c123'p'
n01Brand B;c=c124'p'
n01Brand C;c=c125'p'
See
See also