what is the syntax of retain statement
At the beginning of each iteration of the DATA step, SAS replaces variables values under program data vector with missing values. A RETAIN statement overrides this default values. RETAIN statement tells SAS not to set variables with missing values when going from the current iteration of the DATA step to the next i.e. SAS retains the values. Syntax RETAIN Var1 Var2 â¦Varn; Example:-DATA Test; INPUT X; DATALINES; 1 2 3 ; Run;