@sasjs/core 4.47.0 β†’ 4.48.1

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/.gitattributes ADDED
@@ -0,0 +1 @@
1
+ * text=auto eol=lf
package/README.md CHANGED
@@ -212,7 +212,8 @@ When contributing to this library, it is therefore important to ensure that all
212
212
 
213
213
  ## General Notes
214
214
 
215
- - All macros should be compatible with SAS versions from support level B and above (so currently 9.2 and later). If an earlier version is not supported, then the macro should say as such in the header documentation, and exit gracefully (eg `%if %sysevalf(&sysver<9.3) %then %return`).
215
+ - All macros should be compatible with SAS versions from support level B and above (so currently 9.3 and later). If an earlier version is not supported, then the macro should say as such in the header documentation, and exit gracefully.
216
+ - It's [best to avoid](https://git.datacontroller.io/dc/dc/issues/50) special / non-ASCII characters for compatibility with the widest variety of SAS installations.
216
217
 
217
218
  ## Breaking Changes
218
219
 
@@ -247,7 +248,7 @@ The following repositories are also worth checking out:
247
248
 
248
249
  ## Contributors ✨
249
250
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
250
- [![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors-)
251
+ [![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors-)
251
252
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
252
253
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
253
254
 
@@ -272,6 +273,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
272
273
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/yabwon"><img src="https://avatars.githubusercontent.com/u/9314894?v=4?s=100" width="100px;" alt="Bart Jablonski"/><br /><sub><b>Bart Jablonski</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=yabwon" title="Code">πŸ’»</a></td>
273
274
  <td align="center" valign="top" width="14.28%"><a href="https://bandism.net/"><img src="https://avatars.githubusercontent.com/u/22633385?v=4?s=100" width="100px;" alt="Ikko Ashimine"/><br /><sub><b>Ikko Ashimine</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=eltociear" title="Code">πŸ’»</a></td>
274
275
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/henrik-forsell"><img src="https://avatars.githubusercontent.com/u/109935936?v=4?s=100" width="100px;" alt="Henrik Forsell"/><br /><sub><b>Henrik Forsell</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=henrik-forsell" title="Documentation">πŸ“–</a></td>
276
+ <td align="center" valign="top" width="14.28%"><a href="http://rudvfaden.github.io/"><img src="https://avatars.githubusercontent.com/u/2445577?v=4?s=100" width="100px;" alt="Rud Faden"/><br /><sub><b>Rud Faden</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=rudvfaden" title="Code">πŸ’»</a></td>
275
277
  </tr>
276
278
  </tbody>
277
279
  </table>
@@ -57,7 +57,7 @@
57
57
  %end;
58
58
  %else %if &rule=ISNUM %then %do;
59
59
  /*
60
- credit SØREN LASSEN
60
+ credit SOREN LASSEN
61
61
  https://sasmacro.blogspot.com/2009/06/welcome-isnum-macro.html
62
62
  */
63
63
  &tempcol=input(&incol,?? best32.);
@@ -212,7 +212,7 @@ run;
212
212
  %else %if &engine=ODBC %then %do;
213
213
  &mD.%put NOTE: Retrieving ODBC connection details;
214
214
  data _null_;
215
- length connx_uri conprop_uri value datasource up_uri schema $256.;
215
+ length connx_uri conprop_uri value datasource up_uri schema domprop_uri authdomain $256.;
216
216
  call missing (of _all_);
217
217
  /* get source connection ID */
218
218
  rc=metadata_getnasn("&liburi",'LibraryConnection',1,connx_uri);
@@ -227,6 +227,13 @@ run;
227
227
  rc2=-1;
228
228
  end;
229
229
  end;
230
+
231
+ /* get auth domain */
232
+ autrc=metadata_getnasn(connx_uri,"Domain",1,domprop_uri);
233
+ arc=metadata_getattr(domprop_uri,"Name",authdomain);
234
+ if not missing(authdomain) then authdomain=cats('AUTHDOMAIN=',authdomain);
235
+ call symputx('authdomain',authdomain,'l');
236
+
230
237
  /* get SCHEMA */
231
238
  rc6=metadata_getnasn("&liburi",'UsingPackages',1,up_uri);
232
239
  rc7=metadata_getattr(up_uri,'SchemaName',schema);
@@ -243,7 +250,7 @@ run;
243
250
  (INSERT_SQL=YES DATASRC=&sql_dsn. CONNECTION=global);
244
251
  %end;
245
252
  %else %do;
246
- libname &libref ODBC DATASRC=&sql_dsn SCHEMA=&sql_schema;
253
+ libname &libref ODBC DATASRC=&sql_dsn SCHEMA=&sql_schema &authdomain;
247
254
  %end;
248
255
  %end;
249
256
  %else %if &engine=POSTGRES %then %do;
@@ -67,6 +67,11 @@
67
67
  a conflict)
68
68
  @param [in] repo= ServerContext is tied to a repo, if you are not using the
69
69
  foundation repo then select a different one here
70
+ @param [in] LogicalServerType= (Sps) Server Type to use. Valid options:
71
+ @li Any - Uses the default server.
72
+ @li Sps - Stored Process Server, best choice for web app development. Runs
73
+ under a system account identity (eg sassrv).
74
+ @li Wks - Workspace Server. Runs under the end user identity.
70
75
 
71
76
  @returns outds dataset containing the following columns:
72
77
  - stpuri
@@ -106,6 +111,7 @@
106
111
  ,minify=NO
107
112
  ,frefin=mm_in
108
113
  ,frefout=mm_out
114
+ ,LogicalServerType=Sps
109
115
  )/*/STORE SOURCE*/;
110
116
 
111
117
  %local mD;
@@ -122,6 +128,17 @@
122
128
 
123
129
  %mp_dropmembers(%scan(&outds,2,.))
124
130
 
131
+ /* check LogicalServerType validity */
132
+ %mp_abort(
133
+ iftrue=(
134
+ &LogicalServerType ne Sps
135
+ and &LogicalServerType ne Wks
136
+ and &LogicalServerType ne Any
137
+ )
138
+ ,mac=&sysmacroname
139
+ ,msg=%str(Invalid value for LogicalServerType (&LogicalServerType))
140
+ )
141
+
125
142
  /**
126
143
  * check tree exists
127
144
  */
@@ -354,8 +371,9 @@ run;
354
371
  ' <TextStore IsHidden="0" Name="Stored Process" UsageVersion="0" '/
355
372
  ' TextRole="StoredProcessConfiguration" TextType="XML" '/
356
373
  ' StoredText="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&qu'@@
357
- 'ot;?&gt;&lt;StoredProcess&gt;&lt;ServerContext LogicalServerType=&quot;S'@@
358
- 'ps&quot; OtherAllowed=&quot;false&quot;/&gt;&lt;ResultCapabilities Packa'@@
374
+ 'ot;?&gt;&lt;StoredProcess&gt;&lt;ServerContext LogicalServerType=&quot;'@@
375
+ "&LogicalServerType"@@
376
+ '&quot; OtherAllowed=&quot;false&quot;/&gt;&lt;ResultCapabilities Packa'@@
359
377
  'ge=&quot;' @@ "&package" @@ '&quot; Streaming=&quot;' @@ "&streaming" @@
360
378
  '&quot;/&gt;&lt;OutputParameters/&gt;&lt;/StoredProcess&gt;" />' /
361
379
  " </Notes> "/
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "^4.4.1"
37
37
  },
38
- "version": "4.47.0"
38
+ "version": "4.48.1"
39
39
  }
@@ -1,53 +0,0 @@
1
- -----BEGIN PGP PUBLIC KEY BLOCK-----
2
- Version: GnuPG v1
3
-
4
- mQINBFxkI3gBEADMiqkRvmd/xtPBqH9GoFYIfd4BgVZi3N47Idt2RVSxxO3pYqhj
5
- JU7pRxihw+1g3qPqlEB+5MKWTVKna0lOt7ppu2mrlF+i5AqJdFWjPwKq5AS9kiOq
6
- NKjMYZlXXC7Pt5bKYjKZze0Cl2N6xsnU5rUJLDxQqGFsIdDez7KRWBgdwREjhR5z
7
- 9POLc1WBJM21CVle4F0femFhbDr/ZztnoU1VlYwSSivQW9IEuR/giM4eo1mUHaQU
8
- ZY+oDSfi0OOfxsswe7cDJoRvBnUui6EM+M4Jsq8XTE37FavY91qUh3zaOxM6famE
9
- YqW8YP/NYO9Gb9OhrPH2H9wS80m+H0q5bRPdNsl7Sg8kqHfvvhEMrizF5Wm16/W6
10
- GzFHUlAEZapb4hCvxzRcfTNumeFjzG9iZYprfpSO4CABV6rw73EoqpTwmKdXrD7H
11
- jBB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