comments - Stata delimit in command line -


I am working on a .do file created by somebody else. This person used a semicolon delimiter in the entire file. I am trying to go through this file and see what is happening. I have to do this by selecting a portion of the code and by hitting the "select execution" button. However, the delimiter looks messy on this. Is there any work for me?

Suppose your file-file looks like this:

  #delimit; Set Obes 10; Gene X = _n; General y = x ^ 2; Gene Z = X ^ 3;  

Any time you highlight a selection and press "Execute" (press), Stat creates a temporary, self contained file, in which cr And runs it:

  "When a file file execution starts, the delimiter is automatically set to the carriage return, even if it is called from another file that Sets the delimiter in a semicolon. "  

This command does not allow those commands to run sequentially, therefore, if you select the first 2 commands in the above-do-file, then in the temporary do-file Call #delimit , whereas if you have selected the last 2 commands then the temporary file is a call and will throw a syntax error for two line commands.

One solution may be to select copy-paste in a fresh do-file, which initially had the command #delimit and then run it on it.

You can also write a script to get rid of your D-file with semicolon. If a line does not end in a semicolon, then insert the next line at the end of the current row and then check this line depends on how complex the syntax is in your file, it will be more or less difficult.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -