Stata Syntax Error in Ado File

I’m writing my first Stata Ado file, and when I try to run it I get an error return code 197. The simplest form of the program is:

program disneighbors
syntax , d(integer) Syear(integer) [Salary(integer 0)]
end

When I try to call the function using

disneighbors, d(20) syear(0) salary(0)

I receive the syntax error. Can anyone see why?


Source: syntax

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.