mirror of
https://github.com/yabwon/SAS_PACKAGES.git
synced 2026-01-14 18:10:06 +00:00
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.
This commit is contained in:
@@ -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- ;';
|
||||||
|
|||||||
Reference in New Issue
Block a user