The script defines a utility macro. It does not read any data directly but manipulates variables passed as arguments within a calling Data step.
1 Code Block
MACRO
Explanation : Definition of the `AHGalign` macro. It loops over the provided variable list (`allvar`) using the third-party macro `%AHGcount`. For each variable, it injects four `PRXCHANGE` instructions to: 1) Format numbers followed by parentheses. 2) Add two spaces before single digits. 3) Add one space before two-digit numbers. 4) Remove spaces after a period.
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.