Statalist The Stata Listserver


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

st: testing syntax on no observations


From   evan roberts <eroberts@hist.umn.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: testing syntax on no observations
Date   Mon, 21 Aug 2006 11:03:46 -0500

Is there a way to run do files (or ado files) on no observations to test that there are no typographical errors that would cause the program to stop?

People familiar with SAS will recognize this as analogous to being able to set OPTION OBS = 0 at the beginning of a file to test the syntax. The program will note that there are no observations, but only actually report errors that would cause a submission with data to fail (e.g; mis-named macros, loops that aren't closed etc.)

Thanks for any and all suggestions
Evan Roberts
--
***************
Evan Roberts
Minnesota Population Center and Department of History
University of Minnesota
eroberts@pop.umn.edu
http://www.pop.umn.edu/~eroberts
*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index