Skip to content

Releases: yabwon/SAS_PACKAGES

SAS Packages Framework, version 20260617

Choose a tag to compare

@yabwon yabwon released this 17 Jun 17:22

SAS Packages Framework, version 20260617

One more updated to resolve issue: #136


Changes

A) Documentation for the %requestPackage() macro updated.

SAS Packages Framework, version 20260615

Choose a tag to compare

@yabwon yabwon released this 15 Jun 21:20

SAS Packages Framework, version 20260615

Updated to resolve issue: #136


Changes

A) Documentation for the %requestPackage() macro updated.

B) Process flow diagram added to SPF article.

C) Typo fixed in the %loadPackage() macro


The diagram:

requestPackage_macro_flow_chart

SAS Packages Framework, version 20260602

Choose a tag to compare

@yabwon yabwon released this 02 Jun 23:00

SAS Packages Framework, version 20260602

New macro and parameters added. Errors fixed.


Changes

A) New macro: %requestPackage()!

B) Error fix for githubRepo= selection in the %installPackage() macro.

C) Check for already loaded packages added to the %loadPackage() macro to avoid unnecessary re-loading. To force reloading use: force=1.

D) Update in CMPLIB cleaning for the %unloadPackage() macro.

E) Documentation updated.


Examples

Example: Request for libnameZIP and bpUTiL packages. Dependency (i.e., BasePlus packages) will be installed too:

filename packages "/my/location/for/packages";
%include packages(SPFinit.sas)

%requestPackage(libnameZIP, requiredVersion=0.1.0)

%requestPackage(bpUTiL)

The BasePlus package [ver. 3.2.0]

Choose a tag to compare

@yabwon yabwon released this 28 May 10:15

The BasePlus package [ver. 3.2.5]


  • File SHA256: F*F85189F1AF33755A7C9F05673A8094AE3245A21C8B602E02C20170A4DCF73890 for this version
  • Content SHA256: C*2216D9556FF51EDABAACBBFED7D30D5B46519083F7217A647A505C2F9FAB3634 for this version

Changes:

Fix for leading spaces and [ and ] in the %dirsAndFiles() macro.

SAS Packages Framework, version 20260515

Choose a tag to compare

@yabwon yabwon released this 15 May 22:03

SAS Packages Framework, version 20260515

New parameters added.


Changes

Two new parameters in the %unbundlePackages() macro:

  • reportOnly= - Optional. Indicates if packages unbundling should be suspended and only a report with bundle content be produced and printed. Value 1 means yes, Value 0 (default) means no.

  • quiet= - Optional. Indicates if printout of the summary report should be suspended. Value 1 means yes, Value 0 (default) means no.


SAS Packages Framework, version 20260514

Choose a tag to compare

@yabwon yabwon released this 14 May 11:52

SAS Packages Framework, version 20260514

Code cleaning and fixes in user input verification.


Changes

Code cleaning and fixes in user input verification for macros: %listPackages(), %relocatePackage(), %bundlePackages(), and %unbundlePackages().


The BasePlus package [ver. 3.1.5]

Choose a tag to compare

@yabwon yabwon released this 12 May 14:50

The BasePlus package [ver. 3.1.5]


  • File SHA256: F*2308959251D1BF9259B693EB8C60D30D24D5D7E06AED05A03639A7C7E458658F for this version
  • Content SHA256: C*9CA3E5365260C4D439592CCD16311BE30C82DE03AFC80BC2EA6B9677B3F7A8CE for this version

Changes:

Error fix in %splitDSintoBlocks() macro (missing semicolon were producing ugly "Variable is uninitialized." note).

The SQLinDS package [ver. 2.4.0]

Choose a tag to compare

@yabwon yabwon released this 11 May 12:42

The SQLinDS package [ver. 2.4.0]


  • File SHA256: F*A3DC9400DEF1403DC9E191611790244A8B0FB23303D3A98D29777E46A1D4E8B4 for this version
  • Content SHA256: C*4A49F365C4EF8C5523393FDC1E11C344B023F449B3F1759BA27CFC6C1293A499 for this version

Changes:

You can use Proc SQL to populate hash table. Call to %SQL() has to be in double-quotes.

Example

data _null_;
  if 0 then set %SQL(SELECT name, age FROM sashelp.class);

  declare hash H (dataset: "%SQL(SELECT name, age FROM sashelp.class)") ;
  H.defineKey("age");
  H.defineKey("name");
  H.defineDone();

  H.output(dataset:"output");
  stop;
run;

SAS Packages Framework, version 20260411

Choose a tag to compare

@yabwon yabwon released this 10 Apr 17:32

SAS Packages Framework, version 20260411

A backup copy of already installed package can be created before installing new one.


Changes

New parameter added to the %installPackage() macro:

  • backup= - When set to 1 and a package file already exists (is installed), the macro creates a backup copy of the package file. The backup copy is created with a suffix of the following format: _BCKP_yyyymmddHHMMSS. If the replace=0 then backup is set to 0 too.

Examples

Example: Install SQLinDS and BasePlus packages and create backup copy of existing packages files:

filename packages "/my/location/for/packages";
%include packages(SPFinit.sas)

%installPackage(SQLinDS BasePlus, backup = 1)

SAS Packages Framework, version 20260409

Choose a tag to compare

@yabwon yabwon released this 09 Apr 11:48

SAS Packages Framework, version 20260409

With properly configured fine-grained personal access token for GitHub packages from private repos can be installed now.


Changes

New parameters added to the %installPackage() macro:

  • githubRepo= - allows an easy set of the search path for packages available on GitHub: https://github.com/<github>/<githubRepo>/raw/.../
  • githubToken= - provides a fine-grained personal access GitHub token for access to private repositories. The token used has to be configured properly to get the access. Read GitHub documentation to learn how to create and setup your token. The token has to allow for content read.

Examples

Example Install myPrivatePackage package from a private repository myPrivateRepo hosted by myOrganization:

filename packages "/my/location/for/packages";
%include packages(SPFinit.sas)

%installPackage(myPrivatePackage
 , github = myOrganization
 , githubRepo = myPrivateRepo
 , githubToken = github_pat_XXXXXXXXXXXXXXXXXXXXXX_YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
)