help wfdo_templates: Templates for creating do-files

List of templates

1. Standard template for do-files.
2. Master do-file with master log file.
3. Save ttest results to a matrix.

1. Standard template for a do-file

capture log close
log using _name_, replace text

// program: _name_.do
// task:
// project:
// author: _who_ \ _date_

// #0
// program setup

version 10
clear all
set linesize 80
macro drop _all

local date
local tag "\ _name_.do jsl `date'"

// #1
// describe task 1

// #2
// describe task 2

log close
exit

2. Master do-file template with master log file

capture log close master
log using wfmaster, name(master) replace text

// program: wfmaster.do
// task: Creating a master log file
// project: workflow chapter 5
// author: jsl \ 2008-06-27

do wf-master01.do
do wf-master02.do

log close master
exit

3. Template for simple do-file

capture log close
log using _name_, replace text

// _name_.do:
// scott long _date_

version 10
clear all
macro drop _all
set linesize 80

* my commands start here

log close
exit

Also see

Workflow; WF-do-files