Hello guys,
I am trying to merge two datasets. I am imputing these datasets from two difference location (directories/folders). I have two do files, one for each data set. The purpose of the do files is just to clean the datasets and prepare them for merge. I don't need the clean version of these two datsets but just the final merge that is why I am trying to use the tempfile option. Below you can see "part" my do files (all the cleaning commands are omitted).
This is the error message I got.
Any Ideas??
I am trying to merge two datasets. I am imputing these datasets from two difference location (directories/folders). I have two do files, one for each data set. The purpose of the do files is just to clean the datasets and prepare them for merge. I don't need the clean version of these two datsets but just the final merge that is why I am trying to use the tempfile option. Below you can see "part" my do files (all the cleaning commands are omitted).
Code:
***** IMPORT DATA clear cd "H:\MMM\Datasets\Folder1" use data1_Raw sort ID tempfile data1 save `data1'
Code:
***** IMPORT DATA - ADMISSION DATA clear cd "H:\MMM\Folder2" use data2_Raw sort ID merge ID using `data1'
Code:
(note: you are using old merge syntax; see [D] merge for new syntax) filelist required r(100);
Any Ideas??
Comment