Regression on multiple datasets with a per-dataset variable
I believe adding the meta-variable X to you dataset and combining them is a good option.
However - why do you have 10 different datasets ? and not a single dataset to start with ?
Is there a special meaning attached to each individual dataset - which is why they are not combined in the first place ? Does that sound like an additional categorical variable you need so as to differentiate between individual datasets ?