SURVO MM Help System (web edition)

VAR <variable>=<expression> TO <data in data file> 
is an operation setting values for a numeric <variable> in <data file> 
as a function of other variables according to <expression>.
<variable> may be defined earlier (by FILE CREATE or FILE UPDATE) or it
may be a new one. In case of a new variable, its type may be given in the
form <variable>:<type>=<expression> where <type> is 1,2,4 or 8.
<variable>:4 is default.
Also <variable>:S<len>=<expression> is permitted for new string variables.
<expression> may be any function of variables in <data> and written
according to the rules of editorial computing (see ARIT?).
Examples:
VAR Sum=Test1+2*Test2 TO DATA1
VAR Lincome=log(Income) TO ECON
VAR Number:2=ORDER TO FILE_A   / 'Number' will be a two-byte variable
In the last example ORDER is a predefined variable whose value is the
number (1,2,...) of the current observation. Likewise predefined
variables N=number of observations, MISSING (missing value) and
RND=random value in (0,1) can be used in <expression>.

  V = More information on VAR operation 


More information on Survo from www.survo.fi
Copyright © Survo Systems 2001-2012.
webmaster'at'survo.fi