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.
Rene
2 months agoEmelda
1 months agoKris
1 months agoBette
1 months agoFatima
2 months agoGoldie
2 months agoLynelle
2 months agoChrista
2 months agoMarge
2 months agoDaron
2 months agoDante
3 months agoFlo
2 months agoHaley
2 months agoClorinda
3 months agoAnnette
3 months agoClorinda
3 months agoVivienne
3 months agoChantell
2 months agoSocorro
3 months agoCarri
3 months ago