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. |
ADDLEN lets you add columns to each record.
Syntax:
ADDLEN n (n = number of additional columns)
Abbreviation: none
Usage:
Your data file has a fixed number of columns/variables. If you create new variables using some glossary variable instructions, you might need to increase the size of your data file so that you can store your new variables. ADDLEN adds columns to the end of each record.
Important information:
An ADDLEN statement must be entered in the Setup Glossary Variables dialog box before other glossary statements. (The ADDREC statement, must also be written before any other glossary statements. ADDREC and ADDLEN are rarely used together; use ADDREC when you have multiple records per case and ADDLEN when you have one record per case.)
Example:
For example, to add 50 positions to each record, you would write:
ADDLEN 50
After the ADDLEN statement is written, you can reference the new positions in your other glossary variable and logic statements.
Note: Glossary looping logic cannot be used with ADDLEN statements. |
Related topics: