How to change all block data ?

I have a spawner block set in the world and I want to modify all its data at once from a storage. How can I do that ? I tried data modi fy block ~ ~ ~ {}set from storage test SpawnerData but that not seem to be working...

Continue to help post