This macro takes an input string ('line') and an optional delimiter ('dlm'). It uses a macro loop (%do) to iterate through each element of the string. It relies on an external macro '%AHGcount' to determine the number of iterations, then uses '%scan' to extract and '%put' to display each element on a new line in the log.
Data Analysis
Type : INTERNAL_CREATION
The processed data is provided directly via the macro parameters.
1 Code Block
MACRO
Explanation : Defines the AHGLtoP macro. It iterates from 1 up to the number of elements returned by the %AHGcount macro (external dependency). In each iteration, it extracts the i-th word from the 'line' string using the 'dlm' delimiter and displays it in the log.
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.
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.