I have some empirical data, and I'd like to simulate multivariate normal data with the same mean and covariance matrix.

I can do this by running the summarize and correl,cov commands on the empirical data, then pasting the means and covariance matrix into the drawnorm or corr2data commands. But it's bad practice to cut and paste statistics from the output into the commands. Is there a way to automate this using macros that contain the output of summarize and correl,cov?

Thanks!