Stata: Data Analysis and Statistical Software
   >> Home >> Resources & support >> FAQs >> Sending program output to Technical Support

How do I send program output to Technical Support?

Title   Sending program output to Technical Support
Author Stata Technical Support
Date February 2003

We cannot, in general, debug programs for you, but there are exceptions. Perhaps there is evidence that the problem lies with a Stata-written program.

In any case, Stata can trace the execution of programs, and, in some cases, it is a trace of the execution that we need. These traces, however, can be long. If, after initially emailing us, we request a trace, use the following procedure:

 . log using junk, replace
 . about
 . update
 . sysdir
 . adopath
 . pwd
 . describe
 . summarize
 . *
 . * so far, this is the same procedure you would use to send us any type
 . * of output
 . *
 . discard
 . set more off
 . set trace on
 . command causing problem
 . log close
 . * now we tell Stata to stop tracing programs:
 . set trace off
 . set more on

These commands will create the file junk.smcl, which you can then email to us.

Bookmark and Share 
FAQs
What's new?
Statistics
Data management
Graphics
Programming Stata
Mata
Resources
Internet capabilities
Stata for Windows
Stata for Unix
Stata for Mac
Technical support
Like us on Facebook Follow us on Twitter Follow us on LinkedIn Google+ Watch us on YouTube
Follow us
© Copyright 1996–2013 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index   |   View mobile site