|
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.
|