BookmarkSubscribeRSS Feed
yabwon
Onyx | Level 15

Hey SAS-C!

Just FYI.

Bart

 

The BasePlus package [ver. 2.0.0]

Available at: https://github.com/SASPAC/baseplus

Changes:

New macros:

  • %expandDataSetsList() allowing to expand data set lists of the form: a1-a3, b_:, mixed, and _all_;
  • %unifyVarsCaseSize() allowing to convert all variables in a list of datasets to all-low-case or all-upcase letters.

Both macros are result of recent discussions at SAS-L and communities.sas.com.

New format/informats:

See documentation for details.


SHA256 digest for BasePlus: F*0730DD793516E5C193842126A7EC9D339ADADD19F0F40B071F938CABDE4E66AD


Example 1. New macros.

data a1 a2 a3 b_x b_y b_z;
  set sashelp.class(obs=1);
run;

%put #%expandDataSetsList(lib=work,datasets=a1-a3 b_:)#;

proc print data=a1;
proc print data=b_x;
run;

%unifyVarsCaseSize(work,a1-a3 b_:)

proc print data=a1;
proc print data=b_x;
run;
 

Example 2. New formats/informats:

data _null_;
  x = input('żółw', bpklenght.);
  y = input('żółw', bplenght.);
  put x= y=;
run;
Log:
x=4 y=7
_______________
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

Hey SAS-C,

A bug fix.

Bart

 

“An expert is a person who has made all the mistakes that can be made in a very narrow field.” ― Niels Bohr

 

The BasePlus package [ver. 2.0.1]

This release is dedicated to all dyslexics in the world.

Thanks @ChrisHemedinger for pointing that bug! 🙂 🙂

 

Available at: https://github.com/SASPAC/baseplus

Changes:

New macros:

  • %expandDataSetsList() allowing to expand data set lists of the form: a1-a3, b_:, mixed, and _all_;
  • %unifyVarsCaseSize() allowing to convert all variables in a list of datasets to all-low-case or all-upcase letters.

Both macros are result of recent discussions at SAS-L and communities.sas.com.

New format/informats:

See documentation for details.


SHA256 digest for BasePlus: F*FB102C9B12E870666C15A651017D48E0141E47D64C11437350D0EC75A7E9E609


Example 1. New macros.

data a1 a2 a3 b_x b_y b_z;
  set sashelp.class(obs=1);
run;

%put #%expandDataSetsList(lib=work,datasets=a1-a3 b_:)#;

proc print data=a1;
proc print data=b_x;
run;

%unifyVarsCaseSize(work,a1-a3 b_:)

proc print data=a1;
proc print data=b_x;
run;
 

Example 2. New formats/informats:

data _null_;
  x = input('żółw', bpklength.);
  y = input('żółw', bplength.);
  put x= y=;
run;
 
x=4 y=7
_______________
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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 510 views
  • 3 likes
  • 1 in conversation