1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-10 14:04:36 +00:00

feat: adding LogicalServerType option to mm_createstp.sas macro. Closes #350

This commit is contained in:
Allan
2023-10-05 16:06:11 +01:00
parent 3890aefccf
commit 2a3071708a
2 changed files with 40 additions and 4 deletions

22
all.sas
View File

@@ -15828,6 +15828,11 @@ filename &frefout temp;
a conflict)
@param [in] repo= ServerContext is tied to a repo, if you are not using the
foundation repo then select a different one here
@param [in] LogicalServerType= (Sps) Server Type to use. Valid options:
@li Any - Uses the default server.
@li Sps - Stored Process Server, best choice for web app development. Runs
under a system account identity (eg sassrv).
@li Wks - Workspace Server. Runs under the end user identity.
@returns outds dataset containing the following columns:
- stpuri
@@ -15867,6 +15872,7 @@ filename &frefout temp;
,minify=NO
,frefin=mm_in
,frefout=mm_out
,LogicalServerType=Sps
)/*/STORE SOURCE*/;
%local mD;
@@ -15883,6 +15889,17 @@ filename &frefout temp;
%mp_dropmembers(%scan(&outds,2,.))
/* check LogicalServerType validity */
%mp_abort(
iftrue=(
&LogicalServerType ne Sps
and &LogicalServerType ne Wks
and &LogicalServerType ne Any
)
,mac=&sysmacroname
,msg=%str(Invalid value for LogicalServerType (&LogicalServerType))
)
/**
* check tree exists
*/
@@ -16115,8 +16132,9 @@ run;
' <TextStore IsHidden="0" Name="Stored Process" UsageVersion="0" '/
' TextRole="StoredProcessConfiguration" TextType="XML" '/
' StoredText="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&qu'@@
'ot;?&gt;&lt;StoredProcess&gt;&lt;ServerContext LogicalServerType=&quot;S'@@
'ps&quot; OtherAllowed=&quot;false&quot;/&gt;&lt;ResultCapabilities Packa'@@
'ot;?&gt;&lt;StoredProcess&gt;&lt;ServerContext LogicalServerType=&quot;'@@
"&LogicalServerType"@@
'&quot; OtherAllowed=&quot;false&quot;/&gt;&lt;ResultCapabilities Packa'@@
'ge=&quot;' @@ "&package" @@ '&quot; Streaming=&quot;' @@ "&streaming" @@
'&quot;/&gt;&lt;OutputParameters/&gt;&lt;/StoredProcess&gt;" />' /
" </Notes> "/

View File

@@ -67,6 +67,11 @@
a conflict)
@param [in] repo= ServerContext is tied to a repo, if you are not using the
foundation repo then select a different one here
@param [in] LogicalServerType= (Sps) Server Type to use. Valid options:
@li Any - Uses the default server.
@li Sps - Stored Process Server, best choice for web app development. Runs
under a system account identity (eg sassrv).
@li Wks - Workspace Server. Runs under the end user identity.
@returns outds dataset containing the following columns:
- stpuri
@@ -106,6 +111,7 @@
,minify=NO
,frefin=mm_in
,frefout=mm_out
,LogicalServerType=Sps
)/*/STORE SOURCE*/;
%local mD;
@@ -122,6 +128,17 @@
%mp_dropmembers(%scan(&outds,2,.))
/* check LogicalServerType validity */
%mp_abort(
iftrue=(
&LogicalServerType ne Sps
and &LogicalServerType ne Wks
and &LogicalServerType ne Any
)
,mac=&sysmacroname
,msg=%str(Invalid value for LogicalServerType (&LogicalServerType))
)
/**
* check tree exists
*/
@@ -354,8 +371,9 @@ run;
' <TextStore IsHidden="0" Name="Stored Process" UsageVersion="0" '/
' TextRole="StoredProcessConfiguration" TextType="XML" '/
' StoredText="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&qu'@@
'ot;?&gt;&lt;StoredProcess&gt;&lt;ServerContext LogicalServerType=&quot;S'@@
'ps&quot; OtherAllowed=&quot;false&quot;/&gt;&lt;ResultCapabilities Packa'@@
'ot;?&gt;&lt;StoredProcess&gt;&lt;ServerContext LogicalServerType=&quot;'@@
"&LogicalServerType"@@
'&quot; OtherAllowed=&quot;false&quot;/&gt;&lt;ResultCapabilities Packa'@@
'ge=&quot;' @@ "&package" @@ '&quot; Streaming=&quot;' @@ "&streaming" @@
'&quot;/&gt;&lt;OutputParameters/&gt;&lt;/StoredProcess&gt;" />' /
" </Notes> "/