LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2000, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 23 Jun 2000 14:45:41 -0400
Reply-To:     Quentin McMullen <Quentin_McMullen@ABTASSOC.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Quentin McMullen <Quentin_McMullen@ABTASSOC.COM>
Subject:      Re: More details on Date and Time
Content-Type: text/plain; charset=US-ASCII

One possible addition to Robert's suggestion is to make a macro which when submitted automatically updates the footnote with the current date and time. Below is a macro I have used for this purpose.

I then added a macro call to a hotkey (submit '%foot'; submit;), so that when run in interactive mode the time in the footnote is updated every time I submit a block of code.

%macro foot; footnote "%sysfunc(date(),downame.), %sysfunc(trim(%qsysfunc(left(%qsysfunc(date(),worddate.))))) %sysfunc(left(%qsysfunc(time(),time5.)))"; %mend foot;



______________________________ Reply Separator _________________________________ Subject: Re: More details on Date and Time Author: "Workman; Robert" <rworkman@CARBOMEDICS.COM> at internet Date: 6/23/00 11:09 AM

Seems like a reasonable request, unfortunately I don't know of any way. One thing you might try is to use OPTIONS NODATE and get rid of the date altogether in the title. Then add your time macro to a footnote statement. This code would have to be run each time you created output.

For instance

%let tm = %sysfunc(date(), weekdate.) %sysfunc(time(), time.); footnote "&tm";

*** footnote:

Friday, June 23, 2000 11:14:02

Rob Workman

> -----Original Message----- > From: Peter Flom [SMTP:peter.flom@NDRI.ORG] > Sent: Friday, June 23, 2000 8:31 AM > To: SAS-L@LISTSERV.UGA.EDU > Subject: More details on Date and Time > > Two people already replied to my earlier request for printing the date and > time with suggestions along the lines of > > %put %sysfunc(datetime(), datetime.); > > > Thanks for the prompt replies > > Is there a way to make this the default, so that I don't need to put this > line in every time? I can't foresee ever needing the date and time when I > last started SAS in my output > > Thanks again > > Peter

Back to: Top of message | Previous page | Main SAS-L page