A procedure contains a series of statements. Each statement is a complete instruction to the computer.
Executable statements begin with a command and end with a semicolon (;). They are made up of a combination of commands, keywords, expressions, and functions. For example:
is a command, to
is a keyword, and Q103
is the name of a data entry field.
Assignment statements set a variable equal to the value of an expression and do not contain commands. If the expression is a string expression, then the variable must be alphanumeric. If the expression is numeric or conditional, then the variable must be numeric. For example:
AGE = 10
Q102 = previousAge;
Y = sqrt
NAME = "John Doe"
SEX_RATIO = MALES / FEMALES;