--- On Sun, 10/1/10, Joseph Coveney wrote:
> Try an approach like that illustrated below.
>
> ============begin do-file==============
>
> version 11.0
>
> clear *
> set more off
>
> program define sender, rclass
> version 11.0
> syntax
>
> local variable_list
> foreach var of varlist _all {
> capture confirm
> numeric variable `var'
> if (!_rc) {
>
> local variable_list `variable_list' `var'
> }
> else {
>
> continue
> }
> }
>
> return local varlist `variable_list'
> end
>
> program define receiver
> version 11.0
> syntax varlist
>
> summarize `varlist'
>
> display in smcl as text _newline(2)
> "`varlist'"
> end
>
> sysuse auto
>
> sender
> receiver `r(varlist)'
>
> exit
>
> ============end do-file==============
The program -sender- can be replaced by the line -ds, has(type numeric)-,
see: -help ds-.
Hope this helps,
Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/