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

Re: st:tips to manage multiple do files?

From   Steven Samuels <[email protected]>
To   [email protected]
Subject   Re: st:tips to manage multiple do files?
Date   Thu, 18 Sep 2008 11:56:24 -0400

Mandy, you can download the protocol I use for managing datasets and do files at:

It shows how to keep a log of do files. With the log, you don't need to search individual files to find out what they do.


On Sep 18, 2008, at 11:10 AM, Man Jia wrote:

Hi all,

I was wondering if anyone could share any tips of managing many do
files for one research project. Thanks for your help!
(1) How to make it easy to find some specific work in several do files?

Now I have to open most of them to see if the file has the part I'm
looking for. The thing is, it is kind of hard to remember clearly the
content of each file after even two or three days not working with
them. I tried to write outline in the beginning of each file, but I
have to open each of them to get the outline.
(2) detailed comments in do files
For me it's useful to have detailed comments to explain what I'm
doing in most parts in a do file. Those details include what the
commands are doing, anything I should be careful with in future,
sources I get the ideas, why the alternative ways are not good, summary
of the results..... But a do file has limitation of number of lines in
it. So, Writing a lot of comments means I have to create many do files.

So, is there any good habit to deal with this? Is it better that in do
files just add concise comments and take notes in other files?
Thanks for your time! I really appreciate it.
* For searches and help try:
*   For searches and help try:

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