Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: use of brace inside of macro

From   "Dr. Bill Westman" <>
Subject   st: use of brace inside of macro
Date   Tue, 15 Jun 2010 19:00:07 -0700 (PDT)

I am curious whether a brace can be used inside of a macro.

For example: 

sysuse auto, clear
macro drop _all

global test  }
log using test, replace

forvalues j = 1/1  {
macro list _all

forvalues x = 1/1  {
macro list _all
causes Stata to provide r(1) error.

I've tried the macro with and without quotes "" around the brace.

Is this illegal? If not what is the problem?



*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index