ADDREC

 

Important: WinCross 15 and earlier versions required the use of ADDLEN with some glossary instructions such as ASSIGN, DEFINE and COMPUTE. Beginning with WinCross 16, you can now use the DECLARE instruction to create new variables and assign and compute values directly into the new variables without using ADDLEN.

 

ADDREC lets you add one or more records to each case.

 

Syntax:

ADDREC n  (n = number of additional records)

 

Abbreviation: none

 

Usage:

Your data file has a fixed number of records. If you create new variables using glossary variable commands, you might need to increase the size of your data file so that you can store your new variables. ADDREC adds records to each respondent (‘case’ is used synonymously with ‘respondents’).

 

Important information:

Any ADDREC statement must be written in the Setup Glossary Variables dialog box before other glossary statements. (The ADDLEN statement, must also be written before any other glossary statements. ADDREC and ADDLEN are rarely used together; you use ADDREC when you have multiple records per case and ADDLEN when you have one record per case.)

 

There are several operations in WinCross where you must specify the number of records in your data file. For those operations, specify the number of records in your original file; the number should not include any records that were added using ADDREC.

 

Example:

For example, to add one record to each case, you would write:

 

ADDREC 1

 

After the ADDREC statement is written, you can reference the new record in your other glossary variable and logic statements.

 

Note: Glossary looping logic cannot be used with ADDREC statements.

 

Related topics:

Glossary Variables