mirror of
https://github.com/sasjs/core.git
synced 2026-01-07 17:40:05 +00:00
fix: mv_jobwaitfor
This commit is contained in:
16
all.sas
16
all.sas
@@ -12865,18 +12865,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 +12922,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;
|
||||||
|
|||||||
@@ -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