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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.