Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data step option index=

Status
Not open for further replies.

tweaked2005

Technical User
Jun 21, 2005
20
US
Does anyone have a good definition (without the word index in it) for what the the index= means in the dataset below.

data new(index=var1); set old;run;
 
usually I think of an index as something that would either:
1) order the data differently than what it is stored -or-
2) create a way to find observations faster

so your statement above would create an 'index' (ok - sorry - had to use the word) that will allow you to get the observations faster. Think of it as a card catalogue from an older library - just as each book has a number which will allow you to find the book faster, the index=var1 above will allow the new dataset to be searched faster for specific records.

index is a term that is used EVERYWHERE you are getting data - pretty much means the same thing across the board.

This help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top