You need to do a little programming. Clone meta.ado 
as andreimeta.ado, change the name of the program
accordingly, and insert new definitions of -global-s
saving what you want. 
Nick 
[email protected] 
Andrei Malinovschi
 
> I would like to start by thanking you for the quick
> answer - special thanks to Maarten Buis, Neil
> Shephard, Roger Newson and Herv� Stolowy. I got both
> the answer + further ideas how to improve the process
> / my analysis.
> 
> I have now another problem when doing a metaanalysis
> and running the meta command. I am interested in the
> random pooled estimate (95% CI) and heterogeneity test
> (Q and p-value). I have found that the random effect
> (95%CI) is stored in the global macros S_1, S_3, S_4,
> but I cannot find where Q and the p-value for
> heterogeneity test are stored. Any suggestions or
> another way to retrieve them?
> 
> A possible solution that I was thinking about and it
> is probably too complicated would be to calculate Q
> (from the mathematical formula) and then use heterogi
> to get both the p-value for heterogeneity test and
> even I^2 that is not given by meta command.
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/