Given a structure represented as such:
You can produce a dynamic outcome, using non-flat files (.csv)
The key is to not use any structure/group submodules, but to use the "Items of the Product" and "Product List" data sources. Some of the issues with using structure group names as tags is that you'd need to be very careful of escape characters and extra spaces.
In .csv format you don't have to worry about proper tags but the results will not be 'reader friendly'. This is due to how PIM would handle the loop and create a new line for each related product.
If you goal is to list out all structure nodes, all products, and all items (of products) on a single export - you might want to consider splitting the data into two separate files (product data vs. structure data).
Attached are the two exports I created to help with the task. Try loading them into your PIM and see if they meet your needs.
Hope this helps!
Thank you Ryan.