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
2 months agoXenia
2 months agoJin
3 months agoDyan
3 months agoJennifer
3 months agoDustin
3 months agoLorean
4 months agoCarla
4 months agoCheryll
4 months agoBrittani
4 months agoVi
4 months agoDenna
5 months agoGeorgeanna
5 months agoAshleigh
5 months agoRene
9 months agoEmelda
8 months agoKris
8 months agoBette
8 months agoFatima
8 months agoGoldie
9 months agoLynelle
8 months agoChrista
9 months agoMarge
9 months agoDaron
9 months agoDante
9 months agoFlo
8 months agoHaley
8 months agoClorinda
9 months agoAnnette
10 months agoClorinda
10 months agoVivienne
10 months agoChantell
9 months agoSocorro
9 months agoCarri
10 months ago