Date: Tue, 4 Jan 2005 15:41:24 -0500
Reply-To: Randy Herbison <RandyHerbison@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Randy Herbison <RandyHerbison@WESTAT.COM>
Subject: Re: PMENU reference / get libname in which catalog resides
Content-Type: text/plain
Richard has shown how to get the LIBNAME for the currently executing FRAME.
You can also get the LIBNAME , used to launch the AF application, from the
local environment SCL list:
libname=getnitemc(getniteml(envlist('L'),'_CMDLIST_'),'LIBNAME');
and then assign the PMENU programmatically:
_frame_.pmenuEntry=libname || '.<catalogName>.<entryName>.pmenu';
RandyHerbison@westat.com
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Paul
Walker
Sent: Tuesday, January 04, 2005 10:54 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: PMENU reference / get libname in which catalog resides
In SAS/AF, I have created a frame which has a menu referenced by the
pmenuEntry attribute. The problem is, when I move the catalog in which the
frame is stored to a new sas library, the pmenu reference still points to
the old libname. Is there a quick way to get around this? My thought is
that I will have to programmatically set the pmenu reference, which will
involve first obtaining the libname in which the catalog currently exists,
which is what I am not sure how to do. So my question is:
How can I programmatically obtain (into an SCL variable, say) the libname in
which a SAS catalog entry resides?