Skip to content

The BasePlus package [ver. 2.0.0]

Compare
Choose a tag to compare
@yabwon yabwon released this 23 Jul 20:19
· 6 commits to main since this release
f6f520b

The BasePlus package [ver. 2.0.0]

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;
x=4 y=7