Given the following code:

Which variables are created with the BY statement?
In SAS, when you use a BY statement in a DATA step, SAS creates two temporary variables for each variable listed in the BY statement: one to indicate the first occurrence (FIRST.variable) and another to indicate the last occurrence (LAST.variable) of the value within the BY-group. Given the provided code and assuming that State is the variable used in the BY statement, SAS will create First.State and Last.State. Thus, option A is correct.
SAS documentation on the BY statement, SAS Institute.
Vi
4 months agoXenia
4 months agoJin
4 months agoDyan
5 months agoJennifer
5 months agoDustin
5 months agoLorean
5 months agoCarla
6 months agoCheryll
6 months agoBrittani
6 months agoVi
6 months agoDenna
6 months agoGeorgeanna
7 months agoAshleigh
7 months agoRene
10 months agoEmelda
10 months agoKris
10 months agoBette
10 months agoFatima
10 months agoGoldie
11 months agoLynelle
10 months agoChrista
10 months agoMarge
10 months agoDaron
11 months agoDante
11 months agoFlo
10 months agoHaley
10 months agoClorinda
11 months agoAnnette
11 months agoClorinda
12 months agoVivienne
12 months agoChantell
11 months agoSocorro
11 months agoCarri
11 months ago