Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

[no subject]



program drop _all
program define repeat_codes
.
<insert codes that you're repeating all over the do file>
.
end

After you have done this whenever you need to refer to those codes,
you'll just need to write:

repeat_codes

Hope this helps.

Ada


On 3/18/06, Carter Rees <[email protected]> wrote:
> Greetings,
>
> Working with Stata 9.1, Windows XP.
>
> When I attempt to cut and paste text from within the do-file editor to
> different areas of the same do-file or from another word processing program
> to the do-file editor I get the following error message:
>
> "You will exceed the maximum number of characters the Do-file Editor can
> hold (131071 bytes) if text is pasted".
>
> So, this leaves me with the option of re-typing a lot of redundant code.  A
> search of the archives and FAQ has not produced an answer.  I have checked
> to make sure that I am not unknowingly pasting a large amount of text left
> on my clipboard.
>
> Thanks.
>
> Carter
>
>
> *
> *   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/
>


--
Ada Ma
Research Fellow
Health Economics Research Unit
University of Aberdeen, UK.
http://www.abdn.ac.uk/heru/
Tel: +44 (0) 1224 553863
Fax: +44 (0) 1224 550926

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index