May be I am not explaining the question correctly. I demo an example hoping it can shed some lights. I have no problem converting the two spread sheets into SAS. My issue is that I have multiple rows of long and lat in the from data set and multiple long and lat in the to dataset. long and lat from from dataset long and lat from the to dataset (200,210) (190,210) (400,310) (300,216) (401,432) (200,202) (501,301) . . . . (100.300) Now I want the distance between (200,210) and (190,210) then between (200,210) and (300,216) then between (200,210) and (200,202) then between (400,310) and (190,210) and so forth. Thank you!
... View more