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:
22
all.sas
22
all.sas
@@ -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="<?xml version="1.0" encoding="UTF-8&qu'@@
|
||||
'ot;?><StoredProcess><ServerContext LogicalServerType="S'@@
|
||||
'ps" OtherAllowed="false"/><ResultCapabilities Packa'@@
|
||||
'ot;?><StoredProcess><ServerContext LogicalServerType="'@@
|
||||
"&LogicalServerType"@@
|
||||
'" OtherAllowed="false"/><ResultCapabilities Packa'@@
|
||||
'ge="' @@ "&package" @@ '" Streaming="' @@ "&streaming" @@
|
||||
'"/><OutputParameters/></StoredProcess>" />' /
|
||||
" </Notes> "/
|
||||
|
||||
@@ -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="<?xml version="1.0" encoding="UTF-8&qu'@@
|
||||
'ot;?><StoredProcess><ServerContext LogicalServerType="S'@@
|
||||
'ps" OtherAllowed="false"/><ResultCapabilities Packa'@@
|
||||
'ot;?><StoredProcess><ServerContext LogicalServerType="'@@
|
||||
"&LogicalServerType"@@
|
||||
'" OtherAllowed="false"/><ResultCapabilities Packa'@@
|
||||
'ge="' @@ "&package" @@ '" Streaming="' @@ "&streaming" @@
|
||||
'"/><OutputParameters/></StoredProcess>" />' /
|
||||
" </Notes> "/
|
||||
|
||||
Reference in New Issue
Block a user