@sasjs/core 4.46.5 → 4.46.6

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.
package/.env.server CHANGED
@@ -1,3 +1,3 @@
1
- CLIENT=clientID1
2
- ACCESS_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6ImNsaWVudElEMSIsInVzZXJJZCI6MTQsImlhdCI6MTY4OTI2MDUyOCwiZXhwIjoxNjg5MzQ2OTI4fQ.u3WsTrwchcrS741qfKRkH28oDyyZJF4KXsHwF6MTR3g
3
- REFRESH_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6ImNsaWVudElEMSIsInVzZXJJZCI6MTQsImlhdCI6MTY4OTI2MDUyOCwiZXhwIjoxNjkxODUyNTI4fQ.byb5rEq3FyMlHOwk5y7oZ6qA5FoL9v37dvKYwsLBfP0
1
+ CLIENT=longExpiringClient
2
+ ACCESS_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6ImxvbmdFeHBpcmluZ0NsaWVudCIsInVzZXJJZCI6MSwiaWF0IjoxNjkwMjE1MjM3LCJleHAiOjE3MjE3NzIxODl9.VkNrWks4rriq16reeQve5eimV9-SBgA_lqEb9Qb9snk
3
+ REFRESH_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6ImxvbmdFeHBpcmluZ0NsaWVudCIsInVzZXJJZCI6MSwiaWF0IjoxNjkwMjE1MjM3LCJleHAiOjE2OTI4MDcyMzd9.fj7OHEyHKGa6g2F6rtBT-TvBiKxnlLqWh1mysXz6ZEM
@@ -94,7 +94,7 @@ data &outds;
94
94
  if libref(lib) ne 0 then do;
95
95
  msg=catx(' ','libref',lib,'is not assigned!');
96
96
  %if &errds=0 %then %do;
97
- putlog "%str(ERR)OR: " msg;
97
+ putlog 'ERR' +(-1) "OR: " msg;
98
98
  %end;
99
99
  output;
100
100
  return;
@@ -102,7 +102,7 @@ data &outds;
102
102
  if exist(cats(lib,'.',ds)) ne 1 then do;
103
103
  msg=catx(' ','libds',lib,'.',ds,'does not exist!');
104
104
  %if &errds=0 %then %do;
105
- putlog "%str(ERR)OR: " msg;
105
+ putlog 'ERR' +(-1) "OR: " msg;
106
106
  %end;
107
107
  output;
108
108
  return;
@@ -111,7 +111,7 @@ data &outds;
111
111
  if is_fmt=0 then do;
112
112
  msg=catx(' ','format',fmt,'on libds',lib,'.',ds,'.',var,'is not valid!');
113
113
  %if &errds=0 %then %do;
114
- putlog "%str(ERR)OR: " msg;
114
+ putlog 'ERR' +(-1) "OR: " msg;
115
115
  %end;
116
116
  output;
117
117
  return;
@@ -123,7 +123,7 @@ data &outds;
123
123
  if dsid=0 then do;
124
124
  msg=catx(' ','libds',lib,'.',ds,' could not be opened!');
125
125
  %if &errds=0 %then %do;
126
- putlog "%str(ERR)OR: " msg;
126
+ putlog 'ERR' +(-1) "OR: " msg;
127
127
  %end;
128
128
  output;
129
129
  return;
@@ -131,7 +131,7 @@ data &outds;
131
131
  if varnum(dsid,var)<1 then do;
132
132
  msg=catx(' ','Variable',lib,'.',ds,'.',var,' was not found!');
133
133
  %if &errds=0 %then %do;
134
- putlog "%str(ERR)OR: " msg;
134
+ putlog 'ERR' +(-1) "OR: " msg;
135
135
  %end;
136
136
  output;
137
137
  end;
@@ -69,7 +69,7 @@
69
69
  rc2=filename(fref2,filepath2,'disk','recfm=n');
70
70
  if fcopy(fref1,fref2) ne 0 then do;
71
71
  msg=sysmsg();
72
- putlog "%str(ERR)OR: Unable to copy " filepath " to " filepath2;
72
+ putlog 'ERR' +(-1) "OR: Unable to copy " filepath " to " filepath2;
73
73
  putlog msg=;
74
74
  end;
75
75
  end;
@@ -71,7 +71,7 @@
71
71
  retain &tempcol;
72
72
  &tempcol=prxparse('/^[_a-z]\w{0,7}\.[_a-z]\w{0,31}$/i');
73
73
  if missing(&tempcol) then do;
74
- putlog "%str(ERR)OR: Invalid expression for LIBDS";
74
+ putlog 'ERR' +(-1) "OR: Invalid expression for LIBDS";
75
75
  stop;
76
76
  end;
77
77
  drop &tempcol;
@@ -85,7 +85,7 @@
85
85
  retain &tempcol;
86
86
  &tempcol=prxparse('/^[_a-z\$]\w{0,31}\.[0-9]*$/i');
87
87
  if missing(&tempcol) then do;
88
- putlog "%str(ERR)OR: Invalid expression for FORMAT";
88
+ putlog 'ERR' +(-1) "OR: Invalid expression for FORMAT";
89
89
  stop;
90
90
  end;
91
91
  drop &tempcol;
@@ -51,12 +51,12 @@ data _null_;
51
51
 
52
52
  * name must not be blank;
53
53
  if ( folderPath = '' ) then do;
54
- put "%str(ERR)OR: &sysmacroname PATH parameter value must be non-blank";
54
+ put 'ERR' +(-1) "OR: &sysmacroname PATH parameter value must be non-blank";
55
55
  end;
56
56
 
57
57
  * must have a starting slash ;
58
58
  if ( substr(folderPath,1,1) ne '/' ) then do;
59
- put "%str(ERR)OR: &sysmacroname PATH param value must have starting slash";
59
+ put 'ERR' +(-1) "OR: &sysmacroname PATH param value must have starting slash";
60
60
  stop;
61
61
  end;
62
62
 
@@ -69,14 +69,14 @@ data _null_;
69
69
 
70
70
  * do not create a root (one level) folder ;
71
71
  if countc(folderPath,'/')=1 then do;
72
- put "%str(ERR)OR: &sysmacroname will not create a new ROOT folder";
72
+ put 'ERR' +(-1) "OR: &sysmacroname will not create a new ROOT folder";
73
73
  stop;
74
74
  end;
75
75
 
76
76
  * check that root folder exists ;
77
77
  root=cats('/',scan(folderpath,1,'/'),"(Folder)");
78
78
  if metadata_pathobj('',root,"",objType,parentId)<1 then do;
79
- put "%str(ERR)OR: " root " does not exist!";
79
+ put 'ERR' +(-1) "OR: " root " does not exist!";
80
80
  stop;
81
81
  end;
82
82
 
@@ -141,7 +141,7 @@ run;
141
141
  putlog "SUCCCESS! &path created.";
142
142
  end;
143
143
  else do;
144
- putlog "%str(ERR)OR: unsuccessful attempt to create &path";
144
+ putlog 'ERR' +(-1) "OR: unsuccessful attempt to create &path";
145
145
  call symputx('syscc',8);
146
146
  end;
147
147
  run;
@@ -58,7 +58,7 @@ data &outds;
58
58
  rc5=metadata_getattr(tsuri,"Name",servercontext);
59
59
  end;
60
60
  else do;
61
- put "%str(ERR)OR: could not find " path;
61
+ put 'ERR' +(-1) "OR: could not find " path;
62
62
  put (_all_)(=);
63
63
  end;
64
64
  &md.put (_all_)(=);
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "^4.4.1"
37
37
  },
38
- "version": "4.46.5"
38
+ "version": "4.46.6"
39
39
  }
@@ -652,9 +652,11 @@ data _null_;
652
652
  put ' ';
653
653
  put '%mend mfs_httpheader; ';
654
654
  /* WEBOUT END */
655
- put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO);';
655
+ put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO';
656
+ put ' ,maxobs=MAX';
657
+ put ');';
656
658
  put ' %ms_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt,missing=&missing';
657
- put ' ,showmeta=&showmeta';
659
+ put ' ,showmeta=&showmeta,maxobs=&maxobs';
658
660
  put ' )';
659
661
  put '%mend;';
660
662
  run;
@@ -814,9 +814,11 @@ data _null_;
814
814
  put '%global __program _program;';
815
815
  put '%let _program=%sysfunc(coalescec(&__program,&_program));';
816
816
  put ' ';
817
- put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO);';
817
+ put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO';
818
+ put ' ,maxobs=MAX';
819
+ put ');';
818
820
  put ' %mv_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt,missing=&missing';
819
- put ' ,showmeta=&showmeta';
821
+ put ' ,showmeta=&showmeta,maxobs=&maxobs';
820
822
  put ' )';
821
823
  put '%mend;';
822
824
  run;