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.
This commit is contained in:
yabwon
2020-08-11 14:47:41 +02:00
parent bed882582e
commit 42663d56f7

View File

@@ -1811,14 +1811,18 @@ data _null_;
put 'data _null_;'; put 'data _null_;';
put ' length lazyData $ 32767; lazyData = lowcase(symget("lazyData"));'; put ' length lazyData $ 32767; lazyData = lowcase(symget("lazyData"));';
do until(eof); do until(eof);
set &filesWithCodes.(where=( upcase(type) =: 'LAZYDATA' )) end = EOF nobs=NOBS; set &filesWithCodes. end = EOF nobs=NOBS;
put 'if lazyData="*" OR findw(lazyData, "' fileshort +(-1) '") then'; if ( upcase(type) =: 'LAZYDATA' ) then
put 'do;'; do;
put ' put "NOTE- Dataset ' fileshort 'from the file ""' file +(-1) '"" will be loaded";'; put 'if lazyData="*" OR findw(lazyData, "' fileshort +(-1) '") then';
put ' call execute(''%nrstr(%include' " &_PackageFileref_.(_" folder +(-1) "." file +(-1) ') / nosource2;)'');'; put 'do;';
put 'end;'; 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; end;
put 'run;'; put 'run;';
put '%put NOTE- ;'; put '%put NOTE- ;';