@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 +3 -3
- package/base/mp_applyformats.sas +5 -5
- package/base/mp_copyfolder.sas +1 -1
- package/base/mp_validatecol.sas +2 -2
- package/meta/mm_createfolder.sas +5 -5
- package/meta/mm_getstpinfo.sas +1 -1
- package/package.json +1 -1
- package/server/ms_createwebservice.sas +4 -2
- package/viya/mv_createwebservice.sas +4 -2
package/.env.server
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
CLIENT=
|
|
2
|
-
ACCESS_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
3
|
-
REFRESH_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
1
|
+
CLIENT=longExpiringClient
|
|
2
|
+
ACCESS_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6ImxvbmdFeHBpcmluZ0NsaWVudCIsInVzZXJJZCI6MSwiaWF0IjoxNjkwMjE1MjM3LCJleHAiOjE3MjE3NzIxODl9.VkNrWks4rriq16reeQve5eimV9-SBgA_lqEb9Qb9snk
|
|
3
|
+
REFRESH_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6ImxvbmdFeHBpcmluZ0NsaWVudCIsInVzZXJJZCI6MSwiaWF0IjoxNjkwMjE1MjM3LCJleHAiOjE2OTI4MDcyMzd9.fj7OHEyHKGa6g2F6rtBT-TvBiKxnlLqWh1mysXz6ZEM
|
package/base/mp_applyformats.sas
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
134
|
+
putlog 'ERR' +(-1) "OR: " msg;
|
|
135
135
|
%end;
|
|
136
136
|
output;
|
|
137
137
|
end;
|
package/base/mp_copyfolder.sas
CHANGED
|
@@ -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
|
|
72
|
+
putlog 'ERR' +(-1) "OR: Unable to copy " filepath " to " filepath2;
|
|
73
73
|
putlog msg=;
|
|
74
74
|
end;
|
|
75
75
|
end;
|
package/base/mp_validatecol.sas
CHANGED
|
@@ -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
|
|
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
|
|
88
|
+
putlog 'ERR' +(-1) "OR: Invalid expression for FORMAT";
|
|
89
89
|
stop;
|
|
90
90
|
end;
|
|
91
91
|
drop &tempcol;
|
package/meta/mm_createfolder.sas
CHANGED
|
@@ -51,12 +51,12 @@ data _null_;
|
|
|
51
51
|
|
|
52
52
|
* name must not be blank;
|
|
53
53
|
if ( folderPath = '' ) then do;
|
|
54
|
-
put
|
|
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
|
|
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
|
|
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
|
|
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
|
|
144
|
+
putlog 'ERR' +(-1) "OR: unsuccessful attempt to create &path";
|
|
145
145
|
call symputx('syscc',8);
|
|
146
146
|
end;
|
|
147
147
|
run;
|
package/meta/mm_getstpinfo.sas
CHANGED
package/package.json
CHANGED
|
@@ -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;
|