Hi,
I like using input/end, in order to easily type data,
instead of set obs/replace (too verbose!)
however, when inside a Program , the "end' clause , ends , also, the Program, such as in:
Is there any way using "input" in that circumstance ?
I like using input/end, in order to easily type data,
Code:
clear input float var1 1 2 3 4 5 end
Code:
set obs 6 replace var1 = 6 in 6
Code:
cap program drop toy
program define toy, nclass
clear
input float var2
1
2
3
4
5
end
list
end
. end
command end is unrecognized
r(199);
end of do-file
r(199);

Comment