The isco package consists of a series of programs to recode ISCO-68
The isko package consists of a series of programs to recode ISCO-88
I can replicate the issue in #1:
Code:
. cap ado uninstall isko
.
. ssc install isko
checking isko consistency and verifying not already installed...
installing into /Users/robert/Library/Application Support/Stata/ado/plus/...
installation complete.
.
. * Example generated by -dataex-. To install: ssc install dataex
. clear
. input int focc
focc
1. 1110
2. 1141
3. end
.
. iskoisei fisei, isko(focc)
command B is unrecognized
(error occurred while loading iskoisei.ado)
r(199);
end of do-file
Code:
quietly replace `varlist'=22 if (`isko' == 9331)
quietly replace `varlist'=22 if (`isko' == 9332)
quietly replace `varlist'=30 if (`isko' == 9333)
end
B
If I leave the "B" but remove the final end of line character, I get no error. So it looks like this may indeed be related to the issue of code on the last line without an end of line character (as pointed out by Sergiy) and the outcome depends on how the file was downloaded. No matter what, extra text at the end of a do-file will produce an error if it is not valid Stata code. For example, save the following in a file called "whatsup.ado" in the current directory:
Code:
program whatsup
dis "hello"
end
noi dis "this is valid code"
saywhat
Code:
. whatsup this is valid code command saywhat is unrecognized (error occurred while loading whatsup.ado) r(199);

Leave a comment: