Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: macro list parsing

From   Jakob Petersen <>
Subject   st: macro list parsing
Date   Tue, 17 Jan 2012 11:10:29 +0000

I am trying order the variables on one file according to the order on another file.
This works well on the example datasets, e.g.

sysuse autornd.dta,clear
local orderlist `r(varlist)'
sysuse auto.dta,clear
order `orderlist',after(turn)

But returns an error code when I attempt the same on my own data:

variable __000005 not found

Any ideas? Many thanks,

Jakob Petersen

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index