Stata's do file editor has an upper limit on file size which is 128K
bytes (though Stata for Macintosh has no such limit). It looks like
you're bumping into that ceiling when pasting more code.
One solution is to divide your program. Another is to use a different
text editor to edit your do-files. There is a detailed discussion
about this at http://fmwww.bc.edu/repec/bocode/t/textEditors.html.
If you're a Windows man, the quickest fix is using notepad. In the
long run, I recommend vim. It's maddening while you learn, but vim
mastery is so sweet.
DVM
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/