The macro does not use any datasets. It relies on information that can be either external (a text parameter provided by the user during the call) or internal (the version of the current SAS system).
1 Code Block
MACRO
Explanation : This block defines the '%_catext' macro. It takes an argument 'arg1' (with an alias 'version') which represents the SAS version. The code normalizes this character string: it converts it to uppercase, removes the 'V' prefix and periods, then pads it with zeros. A series of '%if/%then/%else' conditions selects the appropriate catalog extension ('sas7bcat', 'sc2', etc.) based on the normalized version number. If no argument is provided, it relies on the version of the active SAS session. The execution of this macro depends on the availability of other non-standard macros (%_substr, %_repeat, %_version, %_unwind) that are not defined in this code.
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) 2001-2004 Rodney Sparapani. The code is distributed under the terms of the 'GNU General Public License'.
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.