@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 +2 -1
- package/base/mp_validatecol.sas +1 -1
- package/meta/mm_createstp.sas +20 -2
- package/package.json +1 -1
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.
|
|
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
|
|
package/base/mp_validatecol.sas
CHANGED
package/meta/mm_createstp.sas
CHANGED
|
@@ -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="<?xml version="1.0" encoding="UTF-8&qu'@@
|
|
357
|
-
'ot;?><StoredProcess><ServerContext LogicalServerType="
|
|
358
|
-
|
|
374
|
+
'ot;?><StoredProcess><ServerContext LogicalServerType="'@@
|
|
375
|
+
"&LogicalServerType"@@
|
|
376
|
+
'" OtherAllowed="false"/><ResultCapabilities Packa'@@
|
|
359
377
|
'ge="' @@ "&package" @@ '" Streaming="' @@ "&streaming" @@
|
|
360
378
|
'"/><OutputParameters/></StoredProcess>" />' /
|
|
361
379
|
" </Notes> "/
|
package/package.json
CHANGED