SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 47224: Load a SAS data set into a Hash Object using PROC FCMP

DetailsCodeOutputAboutRate It

Load a SAS data set into a Hash Object using PROC FCMP. The loading of the SAS data set into a Hash Object using PROC FCMP occurs only one time and not each time the function is called in the DATA step. Call the user defined function created in PROC FCMP inside the DATA step to look up values in a table. The ability to use the Component Objects (hash objects and hash iterators) are available to be used with PROC FCMP beginning in SAS 9.3 and beyond. For a complete list of attributes, methods and statements available to PROC FCMP, see the Component Objects and PROC FCMP documentation link below. Note: The DECLARE statement, ADD method, REMOVE method, and REPLACE method are missing from the list in the documentation.

Additional Documentation

For more information on Component Objects and PROC FCMP, click the SAS 9.3 documentation link for PROC FCMP below:

PROC FCMP and DATA Step Component Objects

Click on the link below to go to the SAS 9.3 documentation for DATA Step Component Objects:

SAS 9.3 Component Objects: Reference 



These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.