The RETAIN statement declares retained variables and specifies their values. A retained variable is like a control variable (see the section CONTROL Statement) except that it is retained only within iterations. An iteration involves a single pass through the data set.