The ID statement specifies a single variable to be copied to the OUT= data set and used to generate names for the distance variables. The ID variable must be character.
Typically, each ID value occurs only once in the input data set or, if you use a BY statement, only once within a BY group.
If you specify both the ID and BY statements, the ID variable must have the same values in the same order in each BY group.