The BY statement creates BY groups for each unique combination of values of Location and Date. The procedure does not transpose the BY variables.
by location date; run;