Adding comments and notes to formulas and rule formulas in SAS® Activity-Based Management


The formula editor in SAS Activity-Based Management 7.1 and 7.2 supports both single-line and multi-line comments. This makes it possible to embed explanations and document changes in attribute formulas, driver formulas, and driver rule formulas:

   //This is a single-line comment that the formula parser will ignore.
UnitCategory.DimMemRef <> "XYZ_Category" AND Activity.DimMemRef<>"NONE" AND (match(BusinessUnitOrg.DimMemRef, "*Commodities*") 
AND NOT(match(BusinessUnitOrg.DimMemRef, "*Management*"))) AND (match(Location.DimMemRef, "Poughkeepsie")) AND 
(NOT(match(Activity.DimMemRef, "Hire the best")) 
AND NOT(match(Activity.DimMemRef, "BuyBossLunch*")) 
AND NOT(match(Activity.DimMemRef, "Provide administrative support")) 
AND NOT(match(Activity.DimMemRef, "Run marketing studies")) 
AND NOT(match(Activity.DimMemRef, "Check paperwork")) 
AND NOT(match(Activity.DimMemRef, "Overseas travel")) 
AND NOT(match(Activity.DimMemRef, "Manage departments")))
   /*This is a multi-line comment that begins in English and ends in Latin.
     Arma virumque cano, Troiae qui primus ab oris
     Italiam, fato profugus, Laviniaque venit
     litora, multum ille et terris iactatus et alto
     vi superum saevae memorem Iunonis ob iram.*/