Hello,
I have written a script to automatically run several do files in a folder and print either success or fail based on whether it returns _rc == 0 or not. Now I would like to add to that: if it failed, I want it to print the error message and the last 3-5 lines of syntax for why it failed. Is STATA capable of doing that? Any suggestions on how to do that?
Related Posts with STATA command to execute code and return error message
Likert scale outcome with a skewed distribution -- what should I do for a latent growth model?Dear Stata users, I am working with an outcome variable asked in a Likert scale, repeated measures f…
interactions in nonlinear models Hello, I am running an MNL model with the following specifications Code: mlogit son_occ ib(5)…
How to calculate bootstrap SE of the between-group difference in covariance (between two vars)Dear list, My example code is as follows: Code: webuse auto, clear forvalues i=1/50 { qui gen…
Fixed Effects Regression - Specifying More Than One Time Fixed VariableHello, I am conducting a fixed effects regression on panel data of 17 countries within the Eurozone…
Removing note on the bottom-left of a FigureDear All, Suppose I run the code Code: sysuse auto, clear graph bar price, by(foreign) and obtain a…
Subscribe to:
Post Comments (Atom)
0 Response to STATA command to execute code and return error message
Post a Comment