From 42663d56f7baf5173735b441a51855bc694d8bfd Mon Sep 17 00:00:00 2001 From: yabwon Date: Tue, 11 Aug 2020 14:47:41 +0200 Subject: [PATCH] version 20200811 version 20200811, changes: - in the %generatePackage() macro the filesLocation is now positional parameter (the first one), - in the framework both `%loadPackage()` and %loadPackage(HELP)` command prints out the help information for the %loadPackage() macro, - bug fix in lazyData generation - documentation updated. --- SPF/SPFinit.sas | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/SPF/SPFinit.sas b/SPF/SPFinit.sas index 153a4e1..b0875a1 100644 --- a/SPF/SPFinit.sas +++ b/SPF/SPFinit.sas @@ -1811,14 +1811,18 @@ data _null_; put 'data _null_;'; put ' length lazyData $ 32767; lazyData = lowcase(symget("lazyData"));'; do until(eof); - set &filesWithCodes.(where=( upcase(type) =: 'LAZYDATA' )) end = EOF nobs=NOBS; - - put 'if lazyData="*" OR findw(lazyData, "' fileshort +(-1) '") then'; - put 'do;'; - put ' put "NOTE- Dataset ' fileshort 'from the file ""' file +(-1) '"" will be loaded";'; - put ' call execute(''%nrstr(%include' " &_PackageFileref_.(_" folder +(-1) "." file +(-1) ') / nosource2;)'');'; - put 'end;'; + set &filesWithCodes. end = EOF nobs=NOBS; + + if ( upcase(type) =: 'LAZYDATA' ) then + do; + put 'if lazyData="*" OR findw(lazyData, "' fileshort +(-1) '") then'; + put 'do;'; + put ' put "NOTE- Dataset ' fileshort 'from the file ""' file +(-1) '"" will be loaded";'; + put ' call execute(''%nrstr(%include' " &_PackageFileref_.(_" folder +(-1) "." file +(-1) ') / nosource2;)'');'; + put 'end;'; + end; end; + put 'run;'; put '%put NOTE- ;';