Hey SAS-C,
Just FYI,
Bart
New type CASLUDF
for CASL User Defined Functions added to the framework.
Rules for adding CASL User Defined Functions to a package are the same as those for FCMP functions (FUNCTIONS
), user formats (FOTMATS
) or IML modules (IMLMODULE
) types, and in line with general rules:
function myFunction(x, y, z);
result = x + y + z;
return (result);
end func;
CASL UDFs are loaded through a dedicated utility macro generated at the loading process and described below.
If a package contains IML modules or CASL user defined functions additional utility macros for IML Modules and CASL UDFs are generated when package is loaded.
Macros are generated with the following names: %<packageName>IML()
and %<packageName>CASLudf()
. Their purpose is to make loading of Modules or UDFs (with potentially multiple dependencies) easy in Proc IML and Proc CAS.
Run them, accordingly, as the first line in the Proc IML or Proc CAS to access the package content.
For Proc IML the use is as follows:
proc IML;
%<packageName>IML()
<... your code using IML modules from the package ...>
quit;
For Proc CAS the use is as follows:
proc CAS;
%<packageName>CASLudf()
<... your code using CASL UDFs from the package ...>
quit;
If a utility macro is generated appropriate note and a code snippet is printed in the log of the package loading process.
In 99% cases macros are used with default parameters values but, in case when deeper insight about macros parameters is needed, help info is printed in the log when the following code is run:
%<packageName>IML(list=HELP)
or
%<packageName>CASLudf(list=HELP)
If created, those macros are automatically deleted when the %unloadPackage()
macro is run.
Documentation updated.
Minor bugfix.
Changes in the framework:
Bug fix for formats
and proto
with cherry picking.
Packages regenerated with the latest framework version:
New macro %bpPIPE()
in BasePlus package.
Documentation updated.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: