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-2024.png

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.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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