The macro expects a dataset name as a parameter (&dataset) to load the Hash object. This dataset must exist in the SAS session when the macro is executed.
1 Code Block
DATA STEP
Explanation : Definition of the 'create_hash' macro. It declares a Hash object linked to a dataset. It loops over the list of key variables to configure 'definekey' and over the list of data variables to configure 'definedata', before finalizing the definition with 'definedone'.
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : Copyright (c) 2015 by The Financial Risk Group, Cary, NC, USA.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.