dolphinfish 发表于 2010-3-6 12:48
1. What is the benefit of adding _temporary_ to arrays? Is this going to save CPU or disk space? My understanding is that, in both cases, all the values stored in the arrays will be gone after the session. Is this correct?
2. 到底用hash有什么好处呢?总体来说和array好像差不多是吧?
谢谢!
Here is an article about HASH,
http://en.wikipedia.org/wiki/Hash_function
SAS
temporary array is just a memory location to store any intermediate resutls for later use in a data step. It can improve a great deal of performance if one use it properly. For example, if keys are integers and continuous in a range that one knows in advance, a direct key serach table can be bulit in
temporary array. But unlike hask object it has many limitations.