Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Re: Making a unique log file


From   "Donald Spady" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: Making a unique log file
Date   Tue, 25 Apr 2006 15:47:36 -0600

Michael
  With this all I got was a file named comlog$(S_DATE).txt
I then tried
Cmdlog using "D:\statalogs\comlog($S_DATE)" and it worked fine.
Many thanks.
Alex: your idea was much more ambitious than my needs, but thank you anyway.
Don Spady
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Michael Blasnik
Sent: April 25, 2006 3:32 PM
To: [email protected]
Subject: st: Re: Making a unique log file

Cmdlog using "D:\statalogs\comlog${S_DATE}"


----- Original Message ----- 
From: "Donald Spady" <[email protected]>
To: <[email protected]>
Sent: Tuesday, April 25, 2006 5:21 PM
Subject: st: Making a unique log file


>I want to make a command log file using cmdlog, but I want it to be unique
> every time I begin Stata.  Right now my command is
>
> cmdlog using "D:\statalogs\comlog",append
>
> I want it to read something like
> Cmdlog using "D:\statalogs\comlog"+"$S_DATE"
>
> or some other unique identifier but every time I try it, the program 
> aborts
> when it gets to the '+' sign.  Can someone please tell me how to get this 
> to
> work.
>
> Many thanks in advance.
>
> Donald W Spady MD, MSc
> Departments of Pediatrics and Public Health Sciences
> 8226B, Aberhart Centre 1
> University of Alberta
> Edmonton, Alberta,
> CANADA
> T6G 2J3
>
> 780-407-1244: Office
> 780-407-7136: FAX
>
> Nature has no reset button!
>
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/ 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index