@sasjs/core 4.47.0 → 4.48.0

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/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
 
@@ -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.);
@@ -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.0"
39
39
  }