fix: enabling excel uploads to tables with retained keys, also adding more validation to MPE_TABLES updates
Build / Build-and-ng-test (pull_request) Failing after 13s
Details
Build / Build-and-ng-test (pull_request) Failing after 13s
Details
This commit is contained in:
parent
a1d308ea07
commit
3efccc4cf3
|
@ -146,7 +146,7 @@ select count(*) into: nobs from &syslast;
|
|||
,msg=%str(Issue assigning library &orig_lib)
|
||||
)
|
||||
|
||||
%global txfrom txto processed;
|
||||
%global txfrom txto processed rk;
|
||||
|
||||
data _null_;
|
||||
set &mpelib..MPE_TABLES;
|
||||
|
@ -154,12 +154,13 @@ data _null_;
|
|||
call symputx('txfrom',var_txfrom);
|
||||
call symputx('txto',var_txto);
|
||||
call symputx('processed',var_processed);
|
||||
if not missing(RK_UNDERLYING) then call symputx('rk',buskey);
|
||||
run;
|
||||
|
||||
%mp_lockfilecheck(libds=&orig_libds)
|
||||
|
||||
data compare;
|
||||
set &libds(drop=&txfrom &txto &processed);
|
||||
set &libds(drop=&txfrom &txto &processed &rk);
|
||||
stop;
|
||||
run;
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ data work.staging_ds;
|
|||
var_processed=upcase(var_processed);
|
||||
close_vars=upcase(close_vars);
|
||||
audit_libds=upcase(audit_libds);
|
||||
rk_underlying=upcase(rk_underlying);
|
||||
|
||||
/* check for valid loadtype */
|
||||
if LOADTYPE not in ('UPDATE','TXTEMPORAL','FORMAT_CAT','BITEMPORAL','REPLACE')
|
||||
|
@ -47,6 +48,10 @@ data work.staging_ds;
|
|||
BUSKEY='TYPE FMTNAME FMTROW';
|
||||
DSN=scan(dsn,1,'-')!!'-FC';
|
||||
end;
|
||||
|
||||
/* convert tabs into spaces */
|
||||
buskey=translate(buskey," ","09"x);
|
||||
rk_underlying=translate(rk_underlying," ","09"x);
|
||||
run;
|
||||
|
||||
%mp_abort(iftrue=(&errflag=1)
|
||||
|
|
Loading…
Reference in New Issue