The code does not manipulate data tables (datasets). It only performs operations on character strings and macro variables.
1 Code Block
MACRO
Explanation : Definition of the `canonicalname` macro. It takes a name as input, cleans it (lowercase, space removal), and attempts to resolve a prefix (handler) if it contains a dot. If a corresponding handler exists (e.g., `g_handler_l`), it is substituted. It also handles specific logic for the `sas_lang_` prefix.
Explanation : Definition of the `_version` macro. It returns 1 (true) if the current SAS version is greater than or equal to the requested version, otherwise 0 (false).
Copied!
%macro _version(arg1, notes=, version=&arg1);
%local result;
%let result=%eval(%scan(&sysver, 1, .)*100+0%scan(&sysver, 2, .)>=%scan(&version, 1, .)*100+0%scan(&version, 2, .));
%if %length(¬es) %then %put NOTE: _VERSION is returning the value &result;
&result
%mend _version;
%IF %LENGTH(¬es) %THEN %put NOTE: _VERSION is returning the value &RESULT;
6
7
&RESULT
8
9
%mend _version;
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 coco, All Rights Reserved. / Copyright (c) 2001-2006 Rodney Sparapani
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.