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?