Dear All,

Trying to merge two longitudinal datasets is repeatedly giving following errors:
1) variable ptno does not uniquely identify observations in the using data
2) variable ptno does not uniquely identify observations in the master data

But I could merge these datasets without any hassles in SPSS. I need to do the same thing in the Stata. Please see the attached examples of datasets. Thank you