@sasjs/core 4.35.3 → 4.35.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.
@@ -62,7 +62,7 @@
62
62
  @param [in] maxobs= (MAX) Provide an integer to limit the number of input rows
63
63
  that should be converted to JSON
64
64
 
65
- <h4> Related Macros </h4>
65
+ <h4> Related Files </h4>
66
66
  @li mp_ds2fmtds.sas
67
67
 
68
68
  @version 9.2
@@ -210,7 +210,7 @@
210
210
  order by 1;
211
211
  create table &tmpds2(
212
212
  FMTNAME char(32),
213
- MAX num length=3
213
+ LENGTH num
214
214
  );
215
215
  %local catlist cat fmtlist i;
216
216
  select distinct fmtcat into: catlist separated by ' ' from &tmpds1;
@@ -219,16 +219,16 @@
219
219
  proc sql;
220
220
  select distinct fmtname into: fmtlist separated by ' '
221
221
  from &tmpds1 where fmtcat="&cat";
222
- proc format lib=&cat cntlout=&tmpds3(keep=fmtname max);
222
+ proc format lib=&cat cntlout=&tmpds3(keep=fmtname length);
223
223
  select &fmtlist;
224
224
  run;
225
225
  proc sql;
226
- insert into &tmpds2 select distinct fmtname,max from &tmpds3;
226
+ insert into &tmpds2 select distinct fmtname,length from &tmpds3;
227
227
  %end;
228
228
 
229
229
  proc sql;
230
230
  create table &tmpds4 as
231
- select a.*, b.max as maxw
231
+ select a.*, b.length as maxw
232
232
  from &colinfo a
233
233
  left join &tmpds2 b
234
234
  on cats(a.format)=cats(upcase(b.fmtname))
@@ -233,7 +233,7 @@ data _null_;
233
233
  put ' order by 1; ';
234
234
  put ' create table &tmpds2( ';
235
235
  put ' FMTNAME char(32), ';
236
- put ' MAX num length=3 ';
236
+ put ' LENGTH num ';
237
237
  put ' ); ';
238
238
  put ' %local catlist cat fmtlist i; ';
239
239
  put ' select distinct fmtcat into: catlist separated by '' '' from &tmpds1; ';
@@ -242,16 +242,16 @@ data _null_;
242
242
  put ' proc sql; ';
243
243
  put ' select distinct fmtname into: fmtlist separated by '' '' ';
244
244
  put ' from &tmpds1 where fmtcat="&cat"; ';
245
- put ' proc format lib=&cat cntlout=&tmpds3(keep=fmtname max); ';
245
+ put ' proc format lib=&cat cntlout=&tmpds3(keep=fmtname length); ';
246
246
  put ' select &fmtlist; ';
247
247
  put ' run; ';
248
248
  put ' proc sql; ';
249
- put ' insert into &tmpds2 select distinct fmtname,max from &tmpds3; ';
249
+ put ' insert into &tmpds2 select distinct fmtname,length from &tmpds3; ';
250
250
  put ' %end; ';
251
251
  put ' ';
252
252
  put ' proc sql; ';
253
253
  put ' create table &tmpds4 as ';
254
- put ' select a.*, b.max as maxw ';
254
+ put ' select a.*, b.length as maxw ';
255
255
  put ' from &colinfo a ';
256
256
  put ' left join &tmpds2 b ';
257
257
  put ' on cats(a.format)=cats(upcase(b.fmtname)) ';
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "3.13.0"
37
37
  },
38
- "version": "4.35.3"
38
+ "version": "4.35.4"
39
39
  }
@@ -234,7 +234,7 @@ data _null_;
234
234
  put ' order by 1; ';
235
235
  put ' create table &tmpds2( ';
236
236
  put ' FMTNAME char(32), ';
237
- put ' MAX num length=3 ';
237
+ put ' LENGTH num ';
238
238
  put ' ); ';
239
239
  put ' %local catlist cat fmtlist i; ';
240
240
  put ' select distinct fmtcat into: catlist separated by '' '' from &tmpds1; ';
@@ -243,16 +243,16 @@ data _null_;
243
243
  put ' proc sql; ';
244
244
  put ' select distinct fmtname into: fmtlist separated by '' '' ';
245
245
  put ' from &tmpds1 where fmtcat="&cat"; ';
246
- put ' proc format lib=&cat cntlout=&tmpds3(keep=fmtname max); ';
246
+ put ' proc format lib=&cat cntlout=&tmpds3(keep=fmtname length); ';
247
247
  put ' select &fmtlist; ';
248
248
  put ' run; ';
249
249
  put ' proc sql; ';
250
- put ' insert into &tmpds2 select distinct fmtname,max from &tmpds3; ';
250
+ put ' insert into &tmpds2 select distinct fmtname,length from &tmpds3; ';
251
251
  put ' %end; ';
252
252
  put ' ';
253
253
  put ' proc sql; ';
254
254
  put ' create table &tmpds4 as ';
255
- put ' select a.*, b.max as maxw ';
255
+ put ' select a.*, b.length as maxw ';
256
256
  put ' from &colinfo a ';
257
257
  put ' left join &tmpds2 b ';
258
258
  put ' on cats(a.format)=cats(upcase(b.fmtname)) ';
@@ -376,7 +376,7 @@ data _null_;
376
376
  put ' order by 1; ';
377
377
  put ' create table &tmpds2( ';
378
378
  put ' FMTNAME char(32), ';
379
- put ' MAX num length=3 ';
379
+ put ' LENGTH num ';
380
380
  put ' ); ';
381
381
  put ' %local catlist cat fmtlist i; ';
382
382
  put ' select distinct fmtcat into: catlist separated by '' '' from &tmpds1; ';
@@ -385,16 +385,16 @@ data _null_;
385
385
  put ' proc sql; ';
386
386
  put ' select distinct fmtname into: fmtlist separated by '' '' ';
387
387
  put ' from &tmpds1 where fmtcat="&cat"; ';
388
- put ' proc format lib=&cat cntlout=&tmpds3(keep=fmtname max); ';
388
+ put ' proc format lib=&cat cntlout=&tmpds3(keep=fmtname length); ';
389
389
  put ' select &fmtlist; ';
390
390
  put ' run; ';
391
391
  put ' proc sql; ';
392
- put ' insert into &tmpds2 select distinct fmtname,max from &tmpds3; ';
392
+ put ' insert into &tmpds2 select distinct fmtname,length from &tmpds3; ';
393
393
  put ' %end; ';
394
394
  put ' ';
395
395
  put ' proc sql; ';
396
396
  put ' create table &tmpds4 as ';
397
- put ' select a.*, b.max as maxw ';
397
+ put ' select a.*, b.length as maxw ';
398
398
  put ' from &colinfo a ';
399
399
  put ' left join &tmpds2 b ';
400
400
  put ' on cats(a.format)=cats(upcase(b.fmtname)) ';