Add option to use the parent dataset.
Merge pull request #4330 from matz-e/use_parent

Add option to use the parent dataset.