help wfformat

Title

Formatting for do-files

Naming do-files

project [ -task ] step [ letter ] [ Version ] [ -desc ].do

Example: epsl02aV1.do

Formatting do-files

#1: Align commands.

#2: Use indentation to highlight the structure of the program.

#3: Keep command lines to 80 columns or less;
set linesize 80.

#4: Limit use of abbreviated commands to at least 3 characters.

#5: Use blank lines to make the code easier to read.

#6: Use lots of comments.

#7: Use numbered comments to label sections of the program.
For example:

// #1
// Load data and select the sample

Also see

wf