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
Goldie
9 days agoDaron
15 days agoDante
17 days agoClorinda
22 days agoAnnette
1 months agoClorinda
1 months agoVivienne
1 months agoChantell
13 days agoSocorro
16 days agoCarri
1 months ago