Re: Too long command in Stata? [message #11622 is a reply to message #11605] |
Tue, 17 January 2017 17:06 |
Bridgette-DHS
Messages: 3230 Registered: February 2013
|
Senior Member |
|
|
Following is a response from Senior DHS Stata Specialist, Tom Pullum:
The way to deal with long lines is with #delimit. (Enter "help delimit".) Here's an example of how you change to a long line with a semicolon an the delimiter and then back to regular lines in a program:
#delimit ;
Enter your long line here
;
#delimit cr
You can have multiple lines between the two "#delimit" statements, but there must be a semicolon at the end of, or after, each such line.
The normal delimiter is an end of line mark, which is not visible in a text file, but is referred to as "cr" for "carriage return", harking back to the days of typewriters.
[Updated on: Thu, 19 January 2017 11:34] Report message to a moderator
|
|
|