Hi all,

I wish to match the observations of assignment with equal observations from serial. For example - I want to place the value 18 from assignment in front of 18 of serial, 19 from assignment in front of 19 of serial and so on. How to go about it? Thanks.

Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input byte(serial assignment)
 1 18
 2 19
 3 22
 4 24
 5 25
 6 31
 7 34
 8 37
 9 40
10 42
11 43
12 46
13  .
14  .
15  .
16  .
17  .
18  .
19  .
20  .
21  .
22  .
23  .
24  .
25  .
26  .
27  .
28  .
29  .
30  .
31  .
32  .
33  .
34  .
35  .
36  .
37  .
38  .
39  .
40  .
41  .
42  .
43  .
44  .
45  .
46  .
47  .
48  .
49  .
50  .
51  .
52  .
53  .
54  .
55  .
56  .
57  .
58  .
59  .
end