BookmarkSubscribeRSS Feed
yabwon
Onyx | Level 15

Hey SAS-C,

Just FYI,

Bart

 

SAS Packages Framework, version 20221212, is here.

Available as usual at: https://github.com/yabwon/SAS_PACKAGES

 

Changes in the framework:


New type.

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:

  • one file one function,
  • file contains only function definition e.g.,
  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.


New utility macros.

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.


Other.

Documentation updated.
Minor bugfix.

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



1 REPLY 1
yabwon
Onyx | Level 15

New update:

SAS Packages Framework, version 20221215

Available as usual at: https://github.com/yabwon/SAS_PACKAGES

 

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. 

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 770 views
  • 2 likes
  • 1 in conversation