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
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.
|