Date: Fri, 22 Nov 2002 21:28:03 GMT
Reply-To: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Subject: Re: Date-Stamping a Frame Entry
Content-Type: text/plain;
"Deborah Testa" <dtesta@sevenofninesystems.com> wrote in message
news:arlrev$cls$1@slb6.atl.mindspring.net...
> I'd like to add a text label control to my application's main menu and
have
> the control's label text display the date on which the frame entry was
> compiled. Is there a way to pass this value to a screen object?
>
> Thanks,
>
> Deborah
>
Deborah:
You can obtain information about SAS session system objects using SAS xxx
classes
The SAS Catalog Entry class is the oo interface to catalog entry meta data.
Unfortunately, this class does not give out the modification time as well.
(You will note that the Explorer window shows date and time, and time is
'one of those things' that the library engine does not give out to AF
size is another ] )
If you _reaaaally_ need the datetime stamp, it can be fetched from data
output by
Proc CATALOG CAT=...;
CONTENTS OUT= ... ;
;
init:
* get frame four-level name;
this = screenname();
declare sashelp.fsp.CatEntry entryInfo
= _new_ sashelp.fsp.CatEntry();
declare list attrs = {};
entryInfo._setup (this);
entryInfo._getAttributes (attrs);
Textlabel1.label = put (getNitemN(attrs,'DATE'), mmddyy10.);
attrs = dellist (attrs);
entryInfo._term();
return;
--
Richard A. DeVenezia
http://www.devenezia.com/downloads/sas/macros/af