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 (August 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 17 Aug 2007 10:36:36 -0600
Reply-To:     "Workman, Rob" <Rob.Workman@SORIN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Workman, Rob" <Rob.Workman@SORIN.COM>
Subject:      Re: Show current time on an SAS/AF Frame
Comments: To: "Stehle, James" <James.Stehle@BEA.GOV>
Content-Type: text/plain; charset="us-ascii"

James,

Use Datetime.label = putn(date(), worddate.)||' '||putn(time(), time.);

In SCL Macros and Macro functions are compiled at the same time as the frame.

Rob Workman

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Stehle, James Sent: Friday, August 17, 2007 11:19 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Show current time on an SAS/AF Frame

I would like to display current time in a text label control on an SAS/AF frame.

I have a frame with a text label control named DateTime.

The frame has the following scl:

init:

datetime.label="%sysfunc(putn(%sysfunc(date()),worddate.)) %sysfunc(putn(%sysfunc(time()),time.))" ;

return;

Test AF or executing the frame displays:

August 17, 2007 9:29:19

This is the time I compiled the frame. I would like the date and time to show the current time and date when the application is used.


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