Hi Kristin,
You can get the row dimensions from the first datasource with DS_1.getDimensions(AXIS.ROW) and then loop through the returned dimension array to replicate the dimensions in second data source with DS2.moveDimensionsToRows().
Regards,
Mustafa.