1
0
mirror of https://github.com/sasjs/core.git synced 2026-04-21 07:21:31 +00:00

fix: runall

This commit is contained in:
Allan Bowe
2022-05-19 11:27:39 +00:00
committed by GitHub
parent 86f6d06b85
commit 88ddba2a4b
+15 -11
View File
@@ -10277,17 +10277,21 @@ https://blogs.sas.com/content/sastraining/2012/08/14/jedi-sas-tricks-reset-sas-s
%macro mp_resetoption(option /* the option to reset */ %macro mp_resetoption(option /* the option to reset */
)/*/STORE SOURCE*/; )/*/STORE SOURCE*/;
data _null_; %if "%substr(&sysver,1,1)" ne "4" and "%substr(&sysver,1,1)" ne "5" %then %do;
length code $1500; data _null_;
startup=getoption("&option",'startupvalue'); length code $1500;
current=getoption("&option"); startup=getoption("&option",'startupvalue');
if startup ne current then do; current=getoption("&option");
code =cat('OPTIONS ',getoption("&option",'keyword','startupvalue'),';'); if startup ne current then do;
putlog "NOTE: Resetting system option: " code ; code =cat('OPTIONS ',getoption("&option",'keyword','startupvalue'),';');
call execute(code ); putlog "NOTE: Resetting system option: " code ;
end; call execute(code );
run; end;
run;
%end;
%else %do;
%put &sysmacroname: reset option feature unavailable on &sysvlong;
%end;
%mend mp_resetoption;/** %mend mp_resetoption;/**
@file @file
@brief Generate and apply retained key values to a staging table @brief Generate and apply retained key values to a staging table