@sasjs/core 4.51.0 → 4.51.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@
8
8
 
9
9
  @li deleted rows - these are re-inserted
10
10
  @li changed rows - differences are reverted
11
- @li added rows - these are marked with `_____DELETE_THIS_RECORD_____="YES"`
11
+ @li added rows - marked with `_____DELETE__THIS__RECORD_____="YES"`
12
12
 
13
13
  These changes are NOT applied to the base table - a staging dataset is
14
14
  simply prepared for an ETL process to action. In Data Controller, this
@@ -24,7 +24,7 @@
24
24
  in mddl_dc_difftable.sas
25
25
  @param [out] outds= (work.mp_stripdiffs) Output table containing the diffs.
26
26
  Has the same format as the base datset, plus a
27
- `_____DELETE_THIS_RECORD_____` variable.
27
+ `_____DELETE__THIS__RECORD_____` variable.
28
28
  @param [in] mdebug= set to 1 to enable DEBUG messages and preserve outputs
29
29
 
30
30
  <h4> SAS Macros </h4>
@@ -138,6 +138,7 @@ run;
138
138
 
139
139
  %let ds5=%upcase(work.%mf_getuniquename(prefix=mpsd_merged));
140
140
  data &ds5;
141
+ length key_hash $32;
141
142
  merge &ds3 &ds4;
142
143
  by key_hash;
143
144
  if not missing(key_hash);
@@ -145,7 +146,7 @@ run;
145
146
 
146
147
  /* join to base table for preliminary stage DS */
147
148
  proc sql;
148
- create table &outds as select "No " as _____DELETE_THIS_RECORD_____,
149
+ create table &outds as select "No " as _____DELETE__THIS__RECORD_____,
149
150
  b.*
150
151
  from &ds5 a
151
152
  inner join &libds b
@@ -182,7 +183,7 @@ data _null_;
182
183
  end;
183
184
  else if move_type='A' then do;
184
185
  if first.key_hash then do;
185
- put "update &outds set _____DELETE_THIS_RECORD_____='Yes' where 1=1 " @@;
186
+ put "update &outds set _____DELETE__THIS__RECORD_____='Yes' where 1=1 "@@;
186
187
  end;
187
188
  /* gating if - as only need PK now */
188
189
  if is_pk=1;
@@ -193,7 +194,7 @@ data _null_;
193
194
  end;
194
195
  else if move_type='D' then do;
195
196
  if first.key_hash then do;
196
- put "insert into &outds set _____DELETE_THIS_RECORD_____='No' " @@;
197
+ put "insert into &outds set _____DELETE__THIS__RECORD_____='No' " @@;
197
198
  end;
198
199
  put " ," tgtvar_nm '=' @@;
199
200
  charval=quote(cats(oldval_char));
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "^4.4.1"
37
37
  },
38
- "version": "4.51.0"
38
+ "version": "4.51.2"
39
39
  }