h_expand_all_datasets function

Propagate the rules for all datasets