*! version 2.0.1

Title

boilerplate template excer -- course exercise

Description

This a a template for a .do file that a student can use to do an
exercise in a course.

Boilerplate

This template creates a .do file with the following content:

capture log close
log using <stub>.txt, replace text

// ---------------------------------------------------------------------------
// course :
// exercise :
// name :
// student number:
// ---------------------------------------------------------------------------

version <stata_version>
clear all
<as of 16>frames reset
macro drop _all

*use [original_data_file.dta]

// exercise 1 ................................................................

/*
Answer
*/

// exercise 2 ................................................................

/*
Answer
*/

log close
exit

Tags

This file may contain one or more of the following tags:

<stata_version> will be replaced by the Stata version

<date> will be replaced by the date

<fn> will be replaced by the file name

<stub> will be replaced by the file name without the suffix

<abbrev> will be replaced by the file name without the suffix up to the last underscore

<basedir> will be replaced by the directory in which the file is saved

<as of #> will include whatever comes after that tag only if the Stata version is # or higher

Source code

mp_excer.mpb