I have a macro that takes raw data from several sources and transforms it into a number of cleansed tables. This macro should happen first and I then want to call a number of different 'test' macros, each of which uses some of the outputs from the initial preparation macro. At the moment, each different 'test' macro is being treated individually, meaning the preparation macro is being run for each different 'test' macro - obviously this is very inefficient as the same transformation work is being done every time.
Is there a way to set up a single workflow that runs the preparation macro once at the start, then calls each of the test macros afterwards? I suppose I could output the preparation macro tables to actual files then read these back in for each test macro, but it feels inelegant, and breaks up the idea of a single workflow into one prep workflow and one test workflow. Also, I am not sure I can set up a file input when the file doesn't actually exist until the preparation macro is run (this should be a stand-alone end-to-end process)
Cheers