Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: macro


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: macro
Date   Wed, 15 Dec 2004 12:47:29 -0500

use curly braces:

save ${data}_text

Michael Blasnik
[email protected]


----- Original Message ----- From: "Hans J. Baumgartner" <[email protected]>
To: <[email protected]>
Sent: Wednesday, December 15, 2004 12:10 PM
Subject: st: macro



Dear statalist,

I am saving my data within loops and address the data with global macros.
I would like to save the date using the macro and add some text as a suffix.

i.e.:

global data file-name

save $data_text

How can I separate the global with the suffix?

Thanks
Hans
Hans J. Baumgartner DIW Berlin
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index