mirror of
https://github.com/sasjs/core.git
synced 2025-12-23 11:11:19 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 364dc9f07f | |||
| d96125c3cf |
18
all.sas
18
all.sas
@@ -12763,9 +12763,11 @@ data _null_;
|
|||||||
length joburi contextname $128 paramstring $32765;
|
length joburi contextname $128 paramstring $32765;
|
||||||
joburi=quote(trim(symget('joburi')));
|
joburi=quote(trim(symget('joburi')));
|
||||||
contextname=quote(trim(symget('contextname')));
|
contextname=quote(trim(symget('contextname')));
|
||||||
|
_program=quote("&path/&name");
|
||||||
paramstring=symget('paramstring');
|
paramstring=symget('paramstring');
|
||||||
put '{"jobDefinitionUri":' joburi ;
|
put '{"jobDefinitionUri":' joburi ;
|
||||||
put ' ,"arguments":{"_contextName":' contextname;
|
put ' ,"arguments":{"_contextName":' contextname;
|
||||||
|
put ' "_program":' _program;
|
||||||
if paramstring ne "0" then do;
|
if paramstring ne "0" then do;
|
||||||
put ' ,' paramstring;
|
put ' ,' paramstring;
|
||||||
end;
|
end;
|
||||||
@@ -12865,18 +12867,18 @@ libname &libref;
|
|||||||
@param [in] access_token_var= The global macro variable to contain the access token
|
@param [in] access_token_var= The global macro variable to contain the access token
|
||||||
@param [in] grant_type= valid values:
|
@param [in] grant_type= valid values:
|
||||||
|
|
||||||
* password
|
- password
|
||||||
* authorization_code
|
- authorization_code
|
||||||
* detect - will check if access_token exists, if not will use sas_services if
|
- detect - will check if access_token exists, if not will use sas_services if
|
||||||
a SASStudioV session else authorization_code. Default option.
|
a SASStudioV session else authorization_code. Default option.
|
||||||
* sas_services - will use oauth_bearer=sas_services
|
- sas_services - will use oauth_bearer=sas_services
|
||||||
|
|
||||||
@param [in] inds= The input dataset containing the list of job uris, in the
|
@param [in] inds= The input dataset containing the list of job uris, in the
|
||||||
following format: `/jobExecution/jobs/&JOBID./state` and the corresponding
|
following format: `/jobExecution/jobs/&JOBID./state` and the corresponding
|
||||||
job name. The uri should be in a `uri` variable, and the job path/name
|
job name. The uri should be in a `uri` variable, and the job path/name
|
||||||
should be in a `_program` variable.
|
should be in a `_program` variable.
|
||||||
@param [out] outds= The output dataset containing the list of states by job
|
@param [out] outds= The output dataset containing the list of states by job
|
||||||
(default=mv_jobexecute)
|
(default=work.mv_jobexecute)
|
||||||
|
|
||||||
|
|
||||||
@version VIYA V.03.04
|
@version VIYA V.03.04
|
||||||
@@ -12922,6 +12924,10 @@ libname &libref;
|
|||||||
,mac=&sysmacroname
|
,mac=&sysmacroname
|
||||||
,msg=%str(The URI variable was not found in the input dataset(&inds))
|
,msg=%str(The URI variable was not found in the input dataset(&inds))
|
||||||
)
|
)
|
||||||
|
%mp_abort(iftrue=(%mf_existvar(&inds,_program)=0)
|
||||||
|
,mac=&sysmacroname
|
||||||
|
,msg=%str(The _PROGRAM variable was not found in the input dataset(&inds))
|
||||||
|
)
|
||||||
|
|
||||||
%if %mf_nobs(&inds)=0 %then %do;
|
%if %mf_nobs(&inds)=0 %then %do;
|
||||||
%put NOTE: Zero observations in &inds, &sysmacroname will now exit;
|
%put NOTE: Zero observations in &inds, &sysmacroname will now exit;
|
||||||
|
|||||||
@@ -126,9 +126,11 @@ data _null_;
|
|||||||
length joburi contextname $128 paramstring $32765;
|
length joburi contextname $128 paramstring $32765;
|
||||||
joburi=quote(trim(symget('joburi')));
|
joburi=quote(trim(symget('joburi')));
|
||||||
contextname=quote(trim(symget('contextname')));
|
contextname=quote(trim(symget('contextname')));
|
||||||
|
_program=quote("&path/&name");
|
||||||
paramstring=symget('paramstring');
|
paramstring=symget('paramstring');
|
||||||
put '{"jobDefinitionUri":' joburi ;
|
put '{"jobDefinitionUri":' joburi ;
|
||||||
put ' ,"arguments":{"_contextName":' contextname;
|
put ' ,"arguments":{"_contextName":' contextname;
|
||||||
|
put ' "_program":' _program;
|
||||||
if paramstring ne "0" then do;
|
if paramstring ne "0" then do;
|
||||||
put ' ,' paramstring;
|
put ' ,' paramstring;
|
||||||
end;
|
end;
|
||||||
|
|||||||
@@ -59,18 +59,18 @@
|
|||||||
@param [in] access_token_var= The global macro variable to contain the access token
|
@param [in] access_token_var= The global macro variable to contain the access token
|
||||||
@param [in] grant_type= valid values:
|
@param [in] grant_type= valid values:
|
||||||
|
|
||||||
* password
|
- password
|
||||||
* authorization_code
|
- authorization_code
|
||||||
* detect - will check if access_token exists, if not will use sas_services if
|
- detect - will check if access_token exists, if not will use sas_services if
|
||||||
a SASStudioV session else authorization_code. Default option.
|
a SASStudioV session else authorization_code. Default option.
|
||||||
* sas_services - will use oauth_bearer=sas_services
|
- sas_services - will use oauth_bearer=sas_services
|
||||||
|
|
||||||
@param [in] inds= The input dataset containing the list of job uris, in the
|
@param [in] inds= The input dataset containing the list of job uris, in the
|
||||||
following format: `/jobExecution/jobs/&JOBID./state` and the corresponding
|
following format: `/jobExecution/jobs/&JOBID./state` and the corresponding
|
||||||
job name. The uri should be in a `uri` variable, and the job path/name
|
job name. The uri should be in a `uri` variable, and the job path/name
|
||||||
should be in a `_program` variable.
|
should be in a `_program` variable.
|
||||||
@param [out] outds= The output dataset containing the list of states by job
|
@param [out] outds= The output dataset containing the list of states by job
|
||||||
(default=mv_jobexecute)
|
(default=work.mv_jobexecute)
|
||||||
|
|
||||||
|
|
||||||
@version VIYA V.03.04
|
@version VIYA V.03.04
|
||||||
@@ -116,6 +116,10 @@
|
|||||||
,mac=&sysmacroname
|
,mac=&sysmacroname
|
||||||
,msg=%str(The URI variable was not found in the input dataset(&inds))
|
,msg=%str(The URI variable was not found in the input dataset(&inds))
|
||||||
)
|
)
|
||||||
|
%mp_abort(iftrue=(%mf_existvar(&inds,_program)=0)
|
||||||
|
,mac=&sysmacroname
|
||||||
|
,msg=%str(The _PROGRAM variable was not found in the input dataset(&inds))
|
||||||
|
)
|
||||||
|
|
||||||
%if %mf_nobs(&inds)=0 %then %do;
|
%if %mf_nobs(&inds)=0 %then %do;
|
||||||
%put NOTE: Zero observations in &inds, &sysmacroname will now exit;
|
%put NOTE: Zero observations in &inds, &sysmacroname will now exit;
|
||||||
|
|||||||
Reference in New Issue
Block a user