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 (April 2003, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 29 Apr 2003 16:03:51 -0400
Reply-To:   Ed Heaton <EdHeaton@WESTAT.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Ed Heaton <EdHeaton@WESTAT.COM>
Subject:   Re: Macro Variable
Comments:   To: Akbar Golmirzaie <akbar@UARK.EDU>
Content-Type:   text/plain

Akbar,

Here is a way to create a macro flag for the use of an index and and more.

Data test( index=(x) ) ; Do i=1 to 15 ; x = ceil( ranUni(159753) * 9999 ) ; Output ; End ; Run ; Proc contents data=test out=idx( keep= name idxCount idxUsage ) noPrint ; Run ; Data _null_ ; Set idx ; If ( _n_ eq 1 ) then call symPut( "index" , put( idxCount , 3.-L ) ) ; If ( idxUsage ne "NONE" ) then call symput( "indexOn" || trim(name) , idxUsage ) ; Run ; %put _user_ ;

Ed

Edward Heaton, Senior Systems Analyst, Westat (An Employee-Owned Research Corporation), 1600 Research Boulevard, Room RW-3541, Rockville, MD 20850-3195 Voice: (301) 610-4818 Fax: (301) 610-5128 mailto:EdHeaton@westat.com http://www.westat.com

-----Original Message----- From: Akbar Golmirzaie [mailto:akbar@UARK.EDU] Sent: Tuesday, April 29, 2003 3:34 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Macro Variable

Q? I made a data set with Index. Is there a macro variable to indicate such a data set has an index? Or is there a way to crate the macro variable? Thanks.


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