Data editing > How Quantum reads data > Describing the data structure > Highest card type number
 
Highest card type number
Quick reference
For multicard records only, to define the highest card type in the record, if there are more than nine cards per record, type:
struct; max=n
More information
The only time you need to inform Quantum of the highest card type is when you have records with more than nine cards. This is so that Quantum can allocate sufficient cells in the C array to store the extra cards. The highest card type is defined with max=n, where n is the number of the highest card type. Cells 1 to max*reclen are then cleared between respondents. For example, to read a data set with 11 cards per respondent, you might write:
struct;read=2;ser=c(1,4);crd=c5;req=1,2,3,4;max=11
If you forget max=, and a record is read with more than nine cards, the message ‘Too many cards per record’ is printed and the record is rejected. On the other hand, if a card is read with a card type higher than that defined with max=, the record is rejected with the message ‘Card number out of range’.
Note Since the maximum size of the C array is 32,767 cells, the maximum value you can set with max= is 327 cards.
See also
Describing the data structure