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