Merge pull request 'fix: updating logic for REPLACE loadtype' (#25) from replace into development
Reviewed-on: #25
This commit is contained in:
commit
b64bbe91d4
@ -142,10 +142,14 @@ run;
|
|||||||
%mp_lockanytable(UNLOCK,lib=&lib,ds=&ds,ctl_ds=&dclib..mpe_lockanytable)
|
%mp_lockanytable(UNLOCK,lib=&lib,ds=&ds,ctl_ds=&dclib..mpe_lockanytable)
|
||||||
%end;
|
%end;
|
||||||
%else %do;
|
%else %do;
|
||||||
/* is full replace so treat everything as a mod in diff screen */
|
/* is full replace so treat all staged records as new in diff screen */
|
||||||
data work.outds_mod work.outds_add work.outds_del;
|
data work.outds_mod work.outds_add ;
|
||||||
set work.&staging_ds;
|
set work.&staging_ds;
|
||||||
output work.outds_mod; /* _add and _del will be empty */
|
output work.outds_add;
|
||||||
|
run;
|
||||||
|
/* previous table will be considered fully deleted */
|
||||||
|
data work.outds_del;
|
||||||
|
set &lib..&ds;
|
||||||
run;
|
run;
|
||||||
%end;
|
%end;
|
||||||
%end;
|
%end;
|
||||||
|
Loading…
Reference in New Issue
Block a user