adding name to log file

adding name to log file

by Anne Richards -
Number of replies: 3

I clearly missed the instructions on how to add my name to a log file as a comment - could someone enlighten me or point me in the right direction?

Anne

In reply to Anne Richards

Re: adding name to log file

by Nelson Kalema -

Add it in your .do file as a comment

e.g.

/*dataset last modified by: "Your name"

date last modified: 08/18/2015*/

Best wishes,

NK

In reply to Anne Richards

Re: adding name to log file

by Megha Mehrotra -

Hi Anne,

 

All you need to do is in your do file, after you've started your log, include a comment using the asterisks or /* */ comments

So for example, this is your do file:

 

cd ....

version xx

capture log close

log using ....

*YOUR NAME HERE*

or 

/*

YOUR NAME

OTHER DETAILS */

use " "

Analysis

log close

set more on

 

The key here is having the comments AFTER your log using command.

Megha

 

In reply to Megha Mehrotra

Re: adding name to log file

by Anne Richards -

thanks folks- thought I had to do something more complicated than this.

Anne