@sasjs/core 4.51.3 → 4.51.4

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.
@@ -159,7 +159,8 @@ create table &outds as select "No " as _____DELETE__THIS__RECORD_____,
159
159
  /* create SAS code to apply to stage_ds */
160
160
  data _null_;
161
161
  set &ds1;
162
- file &fref1;
162
+ file &fref1 lrecl=33000;
163
+ length charval $32767;
163
164
  if _n_=1 then put 'proc sql noprint;';
164
165
  by descending processed_dttm key_hash is_pk;
165
166
  if move_type='M' then do;
@@ -168,7 +169,8 @@ data _null_;
168
169
  end;
169
170
  if IS_PK=0 then do;
170
171
  put " " tgtvar_nm '=' @@;
171
- charval=quote(cats(oldval_char));
172
+ cnt=count(oldval_char,'"');
173
+ charval=quote(trim(substr(oldval_char,1,32765-cnt)));
172
174
  if tgtvar_type='C' then put charval @@;
173
175
  else put oldval_num @@;
174
176
  if not last.is_pk then put ',';
@@ -176,7 +178,8 @@ data _null_;
176
178
  else do;
177
179
  if first.is_pk then put " where 1=1 " @@;
178
180
  put " and " tgtvar_nm '=' @@;
179
- charval=quote(cats(oldval_char));
181
+ cnt=count(oldval_char,'"');
182
+ charval=quote(trim(substr(oldval_char,1,32765-cnt)));
180
183
  if tgtvar_type='C' then put charval @@;
181
184
  else put oldval_num @@;
182
185
  end;
@@ -188,7 +191,8 @@ data _null_;
188
191
  /* gating if - as only need PK now */
189
192
  if is_pk=1;
190
193
  put ' AND ' tgtvar_nm '=' @@;
191
- charval=quote(cats(newval_char));
194
+ cnt=count(newval_char,'"');
195
+ charval=quote(trim(substr(newval_char,1,32765-cnt)));
192
196
  if tgtvar_type='C' then put charval @@;
193
197
  else put newval_num @@;
194
198
  end;
@@ -197,7 +201,8 @@ data _null_;
197
201
  put "insert into &outds set _____DELETE__THIS__RECORD_____='No' " @@;
198
202
  end;
199
203
  put " ," tgtvar_nm '=' @@;
200
- charval=quote(cats(oldval_char));
204
+ cnt=count(oldval_char,'"');
205
+ charval=quote(trim(substr(oldval_char,1,32765-cnt)));
201
206
  if tgtvar_type='C' then put charval @@;
202
207
  else put oldval_num @@;
203
208
  end;
@@ -205,7 +210,7 @@ data _null_;
205
210
  run;
206
211
 
207
212
  /* apply the modification statements */
208
- %inc &fref1/source2;
213
+ %inc &fref1/source2 lrecl=33000;
209
214
 
210
215
  %if &mdebug=0 %then %do;
211
216
  proc sql;
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "^4.4.1"
37
37
  },
38
- "version": "4.51.3"
38
+ "version": "4.51.4"
39
39
  }