If I use this code
Code:
sysuse auto, clear #delimit ; regress price weight; su price; #delimit cr
However, if I like to create a local with the commands,
Code:
local multiple_commands = "regress price weight; su price" #delimit ; `multiple_commands'; #delimit cr
; invalid name
r(198);
r(198);
Can someone tell me how to fix this? I tried to use different characters before the delimiter ";" such as `;' or \;, but it did not work.
"
Thank you in advance!
Martin
0 Response to Multiple commands in one line stored in a local
Post a Comment