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 <[email protected]>
To   [email protected]
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
[email protected]
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index