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
6 months agoXenia
6 months agoJin
6 months agoDyan
6 months agoJennifer
6 months agoDustin
7 months agoLorean
7 months agoCarla
7 months agoCheryll
7 months agoBrittani
8 months agoVi
8 months agoDenna
8 months agoGeorgeanna
8 months agoAshleigh
8 months agoRene
12 months agoEmelda
11 months agoKris
11 months agoBette
11 months agoFatima
12 months agoGoldie
1 year agoLynelle
12 months agoChrista
12 months agoMarge
12 months agoDaron
1 year agoDante
1 year agoFlo
12 months agoHaley
12 months agoClorinda
1 year agoAnnette
1 year agoClorinda
1 year agoVivienne
1 year agoChantell
1 year agoSocorro
1 year agoCarri
1 year ago