Dear all, today i came up with a question. well, there are two datasets x & y, dataset x had values derived from some procedures and dataset y had random values, all i need is arrange dataset x variables according to values availed in dataset y. i'll give you three tables to understand better. Dataset X Subject hour S1 S2 S3 1 -1 6 8 5 1 0 10 9 7 1 2 9 9 6 2 -1 5 7 10 2 0 9 6 8 2 2 8 9 8 Dataset Y Subject R1 R2 R3 1 3 1 2 2 1 3 2 now my expected output is Output Dataset Subject hour _1 _2 _3 1 -1 5 6 8 1 0 7 10 9 1 2 6 9 9 2 -1 5 10 7 2 0 9 8 6 2 2 8 8 9 dataset x variables are arranged using the values of dataset y and remember this arrangment varies from subject to subject. in the output dataset for subject 1, _1 variable values are taken from S3, _2 variable values are taken from S1, _3 variable values are taken from S2, belongs to dataset X, arranged with reference to values of dataset Y. plz help me out. thanks in advance. Satish.
... View more