I have a lengthy do file which I want to turn into an ado file; I put the following at the top of the file, saved it with a new name as an ado file:
I put the "noi mac li" and "end" so I could test the above only
However, when I call this (with just table6 or with table6 followed by anywhere from 1 to 3 arguments, I get the following
When I click on the blue-colored return code, I get this:
so, anyone have an idea what this error message should be? or, what I did incorrectly?
Code:
program define table6 version 12.1 args filename firstyear lastyear if "`filename'" == "" { noi di "What file do you want to use?" _request(_fname) us "`fname'", clear } else { us "`filename'", clear } if `firstyear'=="" { local minyr = real(substr(c(current_date),-4,.)) } else { local minyr `firstyear' } if `lastyear'=="" { local maxyr = `minyear'+5 } else { local maxyr `lastyear' } local denom=`maxyr' - `minyr' + 1 noi mac li end
However, when I call this (with just table6 or with table6 followed by anywhere from 1 to 3 arguments, I get the following
Code:
(error occurred while loading table6.ado) r(9611);
Code:
------------------------------------------------------------------------------- search for r(9611) (manual: [R] search) ------------------------------------------------------------------------------- Search of official help files, FAQs, Examples, SJs, and STBs Web resources from Stata and other users (contacting http://www.stata.com) no matches (click here to return to the previous screen) (end of search)
Comment