mirror of
https://github.com/sasjs/core.git
synced 2026-01-17 21:40:06 +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)
|
a conflict)
|
||||||
@param [in] repo= ServerContext is tied to a repo, if you are not using the
|
@param [in] repo= ServerContext is tied to a repo, if you are not using the
|
||||||
foundation repo then select a different one here
|
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:
|
@returns outds dataset containing the following columns:
|
||||||
- stpuri
|
- stpuri
|
||||||
@@ -15867,6 +15872,7 @@ filename &frefout temp;
|
|||||||
,minify=NO
|
,minify=NO
|
||||||
,frefin=mm_in
|
,frefin=mm_in
|
||||||
,frefout=mm_out
|
,frefout=mm_out
|
||||||
|
,LogicalServerType=Sps
|
||||||
)/*/STORE SOURCE*/;
|
)/*/STORE SOURCE*/;
|
||||||
|
|
||||||
%local mD;
|
%local mD;
|
||||||
@@ -15883,6 +15889,17 @@ filename &frefout temp;
|
|||||||
|
|
||||||
%mp_dropmembers(%scan(&outds,2,.))
|
%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
|
* check tree exists
|
||||||
*/
|
*/
|
||||||
@@ -16115,8 +16132,9 @@ run;
|
|||||||
' <TextStore IsHidden="0" Name="Stored Process" UsageVersion="0" '/
|
' <TextStore IsHidden="0" Name="Stored Process" UsageVersion="0" '/
|
||||||
' TextRole="StoredProcessConfiguration" TextType="XML" '/
|
' TextRole="StoredProcessConfiguration" TextType="XML" '/
|
||||||
' StoredText="<?xml version="1.0" encoding="UTF-8&qu'@@
|
' StoredText="<?xml version="1.0" encoding="UTF-8&qu'@@
|
||||||
'ot;?><StoredProcess><ServerContext LogicalServerType="S'@@
|
'ot;?><StoredProcess><ServerContext LogicalServerType="'@@
|
||||||
'ps" OtherAllowed="false"/><ResultCapabilities Packa'@@
|
"&LogicalServerType"@@
|
||||||
|
'" OtherAllowed="false"/><ResultCapabilities Packa'@@
|
||||||
'ge="' @@ "&package" @@ '" Streaming="' @@ "&streaming" @@
|
'ge="' @@ "&package" @@ '" Streaming="' @@ "&streaming" @@
|
||||||
'"/><OutputParameters/></StoredProcess>" />' /
|
'"/><OutputParameters/></StoredProcess>" />' /
|
||||||
" </Notes> "/
|
" </Notes> "/
|
||||||
|
|||||||
@@ -67,6 +67,11 @@
|
|||||||
a conflict)
|
a conflict)
|
||||||
@param [in] repo= ServerContext is tied to a repo, if you are not using the
|
@param [in] repo= ServerContext is tied to a repo, if you are not using the
|
||||||
foundation repo then select a different one here
|
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:
|
@returns outds dataset containing the following columns:
|
||||||
- stpuri
|
- stpuri
|
||||||
@@ -106,6 +111,7 @@
|
|||||||
,minify=NO
|
,minify=NO
|
||||||
,frefin=mm_in
|
,frefin=mm_in
|
||||||
,frefout=mm_out
|
,frefout=mm_out
|
||||||
|
,LogicalServerType=Sps
|
||||||
)/*/STORE SOURCE*/;
|
)/*/STORE SOURCE*/;
|
||||||
|
|
||||||
%local mD;
|
%local mD;
|
||||||
@@ -122,6 +128,17 @@
|
|||||||
|
|
||||||
%mp_dropmembers(%scan(&outds,2,.))
|
%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
|
* check tree exists
|
||||||
*/
|
*/
|
||||||
@@ -354,8 +371,9 @@ run;
|
|||||||
' <TextStore IsHidden="0" Name="Stored Process" UsageVersion="0" '/
|
' <TextStore IsHidden="0" Name="Stored Process" UsageVersion="0" '/
|
||||||
' TextRole="StoredProcessConfiguration" TextType="XML" '/
|
' TextRole="StoredProcessConfiguration" TextType="XML" '/
|
||||||
' StoredText="<?xml version="1.0" encoding="UTF-8&qu'@@
|
' StoredText="<?xml version="1.0" encoding="UTF-8&qu'@@
|
||||||
'ot;?><StoredProcess><ServerContext LogicalServerType="S'@@
|
'ot;?><StoredProcess><ServerContext LogicalServerType="'@@
|
||||||
'ps" OtherAllowed="false"/><ResultCapabilities Packa'@@
|
"&LogicalServerType"@@
|
||||||
|
'" OtherAllowed="false"/><ResultCapabilities Packa'@@
|
||||||
'ge="' @@ "&package" @@ '" Streaming="' @@ "&streaming" @@
|
'ge="' @@ "&package" @@ '" Streaming="' @@ "&streaming" @@
|
||||||
'"/><OutputParameters/></StoredProcess>" />' /
|
'"/><OutputParameters/></StoredProcess>" />' /
|
||||||
" </Notes> "/
|
" </Notes> "/
|
||||||
|
|||||||
Reference in New Issue
Block a user