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
combining multiple excel file with multiples excel sheetsHi, I'm now trying to combine multiples excel sheets from multiple excel files. I want to get one ex…
Creating a variable that is a maximum value of another variable within the same group id var1 var2 var3 1 0 5 1 5 5 1 2 5 2 1 1 How do I create var3 that is the ma…
Can dummy variables help me to address the problem of unobserved characteristics?I'm analyzing the effect of different categories of expenditures on subjective well-being (SWB). The…
Organising 4 Groups of Count Data into 2 CategoriesI was hoping to have a bit of assistance in the formatting of a bar chart. I’ve created the followi…
Exposure - days per month with different datesHello, I am using Stata 16.1 MP. I wish to create a monthly exposure variable. This would capture …
Subscribe to:
Post Comments (Atom)
0 Response to STATA command to execute code and return error message
Post a Comment