@sasjs/core 4.32.7 → 4.32.10

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.
@@ -40,6 +40,11 @@
40
40
  %else %if "&SYSVLONG" < "9.04.01M3" %then 0;
41
41
  %else 1;
42
42
  %end;
43
+ %else %if &feature=DBMS_MEMTYPE %then %do;
44
+ /* does dbms_memtype exist in dictionary.tables? */
45
+ %if "%substr(&sysver,1,1)"="4" or "%substr(&sysver,1,1)"="5" %then 0;
46
+ %else 1;
47
+ %end;
43
48
  %else %if &feature=EXPORTXLS %then %do;
44
49
  /* is it possible to PROC EXPORT an excel file? */
45
50
  %if "%substr(&sysver,1,1)"="4" or "%substr(&sysver,1,1)"="5" %then 1;
package/base/mp_getpk.sas CHANGED
@@ -34,6 +34,7 @@
34
34
  @param [out] outds= (work.mp_getpk) The name of the output table to create.
35
35
 
36
36
  <h4> SAS Macros </h4>
37
+ @li mf_existfeature.sas
37
38
  @li mf_getengine.sas
38
39
  @li mf_getschema.sas
39
40
  @li mp_dropmembers.sas
@@ -229,7 +230,12 @@ create table work.&tabs1 as select
229
230
  libname as libref
230
231
  ,upcase(memname) as dsn
231
232
  ,memtype
233
+ %if %mf_existfeature(DBMS_MEMTYPE)=1 %then %do;
232
234
  ,dbms_memtype
235
+ %end;
236
+ %else %do;
237
+ ,'n/a' as dbms_memtype format=$32.
238
+ %end;
233
239
  ,typemem
234
240
  ,memlabel
235
241
  ,nvar
@@ -296,6 +296,7 @@
296
296
  filename _sjs4 temp lrecl=131068 encoding='utf-8';
297
297
  data _null_;
298
298
  file _sjs4;
299
+ length label $350;
299
300
  put ", ""$%lowcase(%sysfunc(coalescec(&dslabel,&ds)))"":{""vars"":{";
300
301
  do i=1 to &numcols;
301
302
  name=quote(trim(symget(cats('name',i))));
@@ -319,6 +319,7 @@ data _null_;
319
319
  put ' filename _sjs4 temp lrecl=131068 encoding=''utf-8''; ';
320
320
  put ' data _null_; ';
321
321
  put ' file _sjs4; ';
322
+ put ' length label $350; ';
322
323
  put ' put ", ""$%lowcase(%sysfunc(coalescec(&dslabel,&ds)))"":{""vars"":{"; ';
323
324
  put ' do i=1 to &numcols; ';
324
325
  put ' name=quote(trim(symget(cats(''name'',i)))); ';
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "3.13.0"
37
37
  },
38
- "version": "4.32.7"
38
+ "version": "4.32.10"
39
39
  }
@@ -320,6 +320,7 @@ data _null_;
320
320
  put ' filename _sjs4 temp lrecl=131068 encoding=''utf-8''; ';
321
321
  put ' data _null_; ';
322
322
  put ' file _sjs4; ';
323
+ put ' length label $350; ';
323
324
  put ' put ", ""$%lowcase(%sysfunc(coalescec(&dslabel,&ds)))"":{""vars"":{"; ';
324
325
  put ' do i=1 to &numcols; ';
325
326
  put ' name=quote(trim(symget(cats(''name'',i)))); ';
@@ -116,14 +116,16 @@ libname &libref JSON fileref=&fref1;
116
116
  %if "&group"="0" and "&gid"="0" %then %do;
117
117
  data &outds;
118
118
  length DISPLAYNAME $60 USERNAME:$30 ID 8;
119
- set &libref..root;
119
+ if nobs=0 then call missing(of _all_);
120
+ set &libref..root nobs=nobs;
120
121
  drop ordinal_root;
121
122
  run;
122
123
  %end;
123
124
  %else %do;
124
125
  data &outds;
125
126
  length DISPLAYNAME $60 USERNAME:$30 ID 8;
126
- set &libref..users;
127
+ if nobs=0 then call missing(of _all_);
128
+ set &libref..users nobs=nobs;
127
129
  drop ordinal_root ordinal_users;
128
130
  run;
129
131
  %end;
@@ -462,6 +462,7 @@ data _null_;
462
462
  put ' filename _sjs4 temp lrecl=131068 encoding=''utf-8''; ';
463
463
  put ' data _null_; ';
464
464
  put ' file _sjs4; ';
465
+ put ' length label $350; ';
465
466
  put ' put ", ""$%lowcase(%sysfunc(coalescec(&dslabel,&ds)))"":{""vars"":{"; ';
466
467
  put ' do i=1 to &numcols; ';
467
468
  put ' name=quote(trim(symget(cats(''name'',i)))); ';