Hi,

I like using input/end, in order to easily type data,
Code:
clear
input float var1
1
2
3
4
5
end
instead of set obs/replace (too verbose!)
Code:
set obs 6
replace var1 = 6 in 6
however, when inside a Program , the "end' clause , ends , also, the Program, such as in:

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);
Is there any way using "input" in that circumstance ?