The process in Legacy, although not applicable here, is really very easy. You search, find, detailed search and "Look for whom" - "individual, "Where to look" - surname, "How to look" - equal to, "What to look for" - Jones or "Look for whome" - individual, "Where to look" - spuse's surname, "How to look" = equal to, "What to look for" - Jones. Then "Clear list before search", "Create list", "Options", "Advanced Tagging", "Clear all tag numbers for everyone", "Everyone in search list", "Close, "Close". The rest of the beauty happens now in the export to gedcom - "Export to gedcom", "Record selection", "All records with an individual tag of" say 1, Mark "Export all spouses of tagged individuals", Mark "Export all children of tagged individuals", "Close", "Select file name and start export. Now you have a gedcom file with all individuals with the surname Jones, their descendants, the daughters husbands but without their children.
I am sure you will always have problems cases as mentioned above.