Hi,

I cannot seem to make the following program use the local inside it.

MWE:

Code:
sysuse auto,clear
* Reg program
capture program drop reg_1
program reg_1
reg price mpg `reg_var' 
end
local reg_var "rep78 headroom"
reg_1
The program does not read the local reg_var.
Does anybody know why?