|Date: ||Tue, 30 Jul 1996 22:11:46 GMT|
|Reply-To: ||Eric Hoogenboom <ehoogenb@SOLAIR1.INTER.NL.NET>|
|Sender: ||"SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>|
|From: ||Eric Hoogenboom <ehoogenb@SOLAIR1.INTER.NL.NET>|
|Subject: ||Re: INDEX question|
Donald R. Ploch wrote:
> I'm trying to create an INDEX to use with a BY expression. I use the
> MODIFY datasetname;
> INDEX CREATE variable;
> I can't seem to satisfy the SAS system with the datasetname. The 6.0
> manual is no help. I'm using SAS on a UNIX system, version is 6.0x.
> Don Ploch, U of Tennessee
Did you try
PROC DATASETS LIBRARY=libname;
INDEX CREATE varname;
libname= the name of your permanent dataset-library or WORK.
dsname = (one level) name of the dataset
varname= name of the variable to index
It should work. Works with me all the time.
If you want to create an index on more than one variable, you have to
give the index a new name.