@sasjs/core 4.46.4 → 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 -0
- package/base/mp_applyformats.sas +5 -5
- package/base/mp_chop.sas +1 -1
- package/base/mp_copyfolder.sas +1 -1
- package/base/mp_md5.sas +1 -2
- package/base/mp_storediffs.sas +1 -2
- package/base/mp_validatecol.sas +2 -2
- package/meta/mm_createfolder.sas +5 -5
- package/meta/mm_getstpinfo.sas +1 -1
- package/openvpn-repo-pkg-key.pub +53 -0
- package/package.json +1 -1
- package/server/ms_createwebservice.sas +4 -2
- package/viya/mv_createwebservice.sas +4 -2
package/.env.server
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
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_chop.sas
CHANGED
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_md5.sas
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
@file
|
|
3
3
|
@brief Generates an md5 expression for hashing a set of variables
|
|
4
4
|
@details This is the same algorithm used to hash records in
|
|
5
|
-
[Data Controller for SAS](https://datacontroller.io)
|
|
6
|
-
to 5 users).
|
|
5
|
+
[Data Controller for SAS](https://datacontroller.io).
|
|
7
6
|
|
|
8
7
|
It is not designed to be efficient - it is designed to be effective,
|
|
9
8
|
given the range of edge cases (large floating points, special missing
|
package/base/mp_storediffs.sas
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
data recovery, and change re-application. This macro is one of many
|
|
7
7
|
data management utilities used in [Data Controller for SAS](
|
|
8
8
|
https:datacontroller.io) - a comprehensive data ingestion solution, which
|
|
9
|
-
works on any SAS platform (Viya, SAS 9, Foundation)
|
|
10
|
-
users.
|
|
9
|
+
works on any SAS platform (Viya, SAS 9, Foundation).
|
|
11
10
|
|
|
12
11
|
NOTE - this macro does not validate the inputs. It is assumed that the
|
|
13
12
|
datasets containing the new / changed / deleted rows are CORRECT, contain
|
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
|
@@ -0,0 +1,53 @@
|
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oQqXNlHwhWPEBGZ19WL11nGkRAHbOwS1TOWKd92Nmx
|
|
46
|
+
HCzeqnLeUvUGnAw2OT7IY481rwSK8b5Hks+ZxO+NY1b/OpzP0Oq53tK4HKlOKtZV
|
|
47
|
+
smA7KAPQr5Io6gt4gujjW/nHzzr52SuQKq+B/hh3GPxcqJAaL9znfAt+FS6NYYRI
|
|
48
|
+
r+0OuCwF9LKWTJkNBdT2TVIwML28rHDHr0zkKAK0Xoq6U3Lbcq09Ujrfv+7zpVzs
|
|
49
|
+
iI4ddUgTbV9n2LCgbtHN2N1txReogcIBWa6/sMwKLcoZyKbDP4Xct2Y4O/rsiTxD
|
|
50
|
+
L63QNz7VYen/rWycC+qzqggj2e5Tobi7+4Yly6+gNKJD+rfHnwrssB7lZgxCswAU
|
|
51
|
+
R0bbxjM9S40=
|
|
52
|
+
=ntdv
|
|
53
|
+
-----END PGP PUBLIC KEY BLOCK-----
|
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;
|