Are you entering this in the command window? You can't use /// in the command window. /// is only allowed when running a do-file.
More generally, when you find code here on Statalist, unless somebody says otherwise, you should assume that it is meant to be run in a do-file, not from the command window. Similarly, when posting code of your own here, if you are doing it in the command window, you should say so, since there are things (like ///) that work differently there, and people will assume, unless you say otherwise, that you are running your code from a do file.
More generally, when you find code here on Statalist, unless somebody says otherwise, you should assume that it is meant to be run in a do-file, not from the command window. Similarly, when posting code of your own here, if you are doing it in the command window, you should say so, since there are things (like ///) that work differently there, and people will assume, unless you say otherwise, that you are running your code from a do file.
Comment