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 (January 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 4 Jan 2005 14:18:51 -0500
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>
Subject:      Re: PMENU reference / get libname in which catalog resides

Paul Walker wrote: > 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?

The entry of the currently running frame is returned by the function ScreenName().

lib = scan (ScreenName(),1,'.'); libmem = lib || '.' || scan (ScreenName(),2,'.');

You can also get the lib&cat from the frames instance variable _LIBCAT_.

libcat = getNitemC (_frame_, 'LIBCAT');

Be sure to search support.sas.com for "PMENU", there are some usage notes regarding setting the pmenu programatically.

-- Richard A. DeVenezia http://www.devenezia.com/downloads/sas/af


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