Date: Wed, 5 Jan 2005 18:42:16 -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: How to set PMENU programatically
Content-Type: text/plain
The frame's pmenu should display independent of what you do with the PMENU
command, so I don't think the CALL EXECCMD statement makes a difference
here.
You should see a note in the SAS log if the PMENU entry fails to load. The
note should provide a clue.
Did you check the value of pmenuname? You can place a PUT statement in the
INIT section: put pmenuname=
and then start the app and check the SAS log.
Does the INIT code belong to the frame who's pmenu you are attempting to
display?
When I try it, the pmenu displays fine. Did you check the SAS Tech Support
Website, as suggested by Richard, for known problems associated with
displaying pmenus?
RandyHerbison@westat.com
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Paul
Walker
Sent: Wednesday, January 05, 2005 3:38 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: How to set PMENU programatically
I am trying to set a PMENU programatically. I am using the following code
in the INIT: block of my SCL code for a frame.
call execcmd("pmenu on");
libname=getnitemc(getniteml(envlist('L'),'_CMDLIST_'),'LIBNAME');
pmenuname = libname || '.easymonitor.asrm.pmenu'; _frame_.pmenuEntry=
pmenuname;
I have also tried this code with "pmenu off" instead. Neither case worked.
Any ideas?