I am new to this forum...need some real help since I am frustrated with this problem for a while now...I am not familiar with any formal programming language (like C) and only have some knowledge of working with SAS and STATA. I have this airport origin and destination survey data....There are origin and destination airports listed by itineraries. I want to have a dataset out of this where I can have a listing of airport pairs without caring about the order. Thus to give you some idea the data set I have looks like
ItID Origin Destination
1 ABQ LAX
2 ORD ABQ
3 LAX ABQ
4 IAD ORD
So in the final listing I only for example need either the pair ABQ-LAX and not the pair LAX-ABQ....i.e. they should get the same identification number....someone told me this can be done using some loop in SAS but he couldn't help me out....any help from you guys would be greatly appreciated..
ItID Origin Destination
1 ABQ LAX
2 ORD ABQ
3 LAX ABQ
4 IAD ORD
So in the final listing I only for example need either the pair ABQ-LAX and not the pair LAX-ABQ....i.e. they should get the same identification number....someone told me this can be done using some loop in SAS but he couldn't help me out....any help from you guys would be greatly appreciated..