mirror of
https://github.com/sasjs/core.git
synced 2026-01-16 04:50:05 +00:00
fix: removed invisible hexchars on blank lines
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
|
|
||||||
@file
|
@file
|
||||||
@brief Testing mv_jobflow macro
|
@brief Testing mv_jobflow macro
|
||||||
@details One of the remote jobs aborts with syscc>0 - test to
|
@details One of the remote jobs aborts with syscc>0 - test to
|
||||||
@@ -8,12 +9,13 @@
|
|||||||
@li mp_assert.sas
|
@li mp_assert.sas
|
||||||
@li mv_createjob.sas
|
@li mv_createjob.sas
|
||||||
@li mv_jobflow.sas
|
@li mv_jobflow.sas
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test Case 1
|
* Test Case 1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
filename testprog temp;
|
filename testprog temp;
|
||||||
data _null_;
|
data _null_;
|
||||||
file testprog;
|
file testprog;
|
||||||
@@ -30,10 +32,10 @@ data _null_;
|
|||||||
/ 'run;'
|
/ 'run;'
|
||||||
;
|
;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
%mv_createjob(path=/Public/temp,name=demo1,code=testprog)
|
%mv_createjob(path=/Public/temp,name=demo1,code=testprog)
|
||||||
%mv_createjob(path=/Public/temp,name=demo2,code=testprog)
|
%mv_createjob(path=/Public/temp,name=demo2,code=testprog)
|
||||||
|
|
||||||
data work.inputjobs;
|
data work.inputjobs;
|
||||||
_contextName='SAS Job Execution compute context';
|
_contextName='SAS Job Execution compute context';
|
||||||
do flow_id=1 to 2;
|
do flow_id=1 to 2;
|
||||||
@@ -50,11 +52,11 @@ data work.inputjobs;
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
* Trigger the flow ;
|
* Trigger the flow ;
|
||||||
|
|
||||||
%put NOTE: &=syscc;
|
%put NOTE: &=syscc;
|
||||||
|
|
||||||
%mv_jobflow(inds=work.inputjobs
|
%mv_jobflow(inds=work.inputjobs
|
||||||
,maxconcurrency=2
|
,maxconcurrency=2
|
||||||
,outds=work.results
|
,outds=work.results
|
||||||
@@ -62,14 +64,14 @@ run;
|
|||||||
,raise_err=1
|
,raise_err=1
|
||||||
,mdebug=1
|
,mdebug=1
|
||||||
)
|
)
|
||||||
|
|
||||||
%put NOTE: &=syscc;
|
%put NOTE: &=syscc;
|
||||||
|
|
||||||
data _null_;
|
data _null_;
|
||||||
infile myjoblog;
|
infile myjoblog;
|
||||||
input; put _infile_;
|
input; put _infile_;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
%mp_assert(
|
%mp_assert(
|
||||||
iftrue=(&syscc ne 0),
|
iftrue=(&syscc ne 0),
|
||||||
desc=Check that non zero return code is returned if called job fails
|
desc=Check that non zero return code is returned if called job fails
|
||||||
@@ -9,8 +9,7 @@
|
|||||||
@li mv_createjob.sas
|
@li mv_createjob.sas
|
||||||
@li mv_jobflow.sas
|
@li mv_jobflow.sas
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test Case 1
|
* Test Case 1
|
||||||
*/
|
*/
|
||||||
@@ -29,10 +28,10 @@ data _null_;
|
|||||||
/ 'run;'
|
/ 'run;'
|
||||||
;
|
;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
%mv_createjob(path=/Public/temp,name=demo1,code=testprog)
|
%mv_createjob(path=/Public/temp,name=demo1,code=testprog)
|
||||||
%mv_createjob(path=/Public/temp,name=demo2,code=testprog)
|
%mv_createjob(path=/Public/temp,name=demo2,code=testprog)
|
||||||
|
|
||||||
data work.inputjobs;
|
data work.inputjobs;
|
||||||
_contextName='SAS Job Execution compute context';
|
_contextName='SAS Job Execution compute context';
|
||||||
do flow_id=1 to 2;
|
do flow_id=1 to 2;
|
||||||
@@ -49,11 +48,11 @@ data work.inputjobs;
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
* Trigger the flow ;
|
* Trigger the flow ;
|
||||||
|
|
||||||
%put NOTE: &=syscc;
|
%put NOTE: &=syscc;
|
||||||
|
|
||||||
%mv_jobflow(inds=work.inputjobs
|
%mv_jobflow(inds=work.inputjobs
|
||||||
,maxconcurrency=2
|
,maxconcurrency=2
|
||||||
,outds=work.results
|
,outds=work.results
|
||||||
@@ -61,14 +60,14 @@ run;
|
|||||||
,raise_err=1
|
,raise_err=1
|
||||||
,mdebug=1
|
,mdebug=1
|
||||||
)
|
)
|
||||||
|
|
||||||
%put NOTE: &=syscc;
|
%put NOTE: &=syscc;
|
||||||
|
|
||||||
data _null_;
|
data _null_;
|
||||||
infile myjoblog;
|
infile myjoblog;
|
||||||
input; put _infile_;
|
input; put _infile_;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
%mp_assert(
|
%mp_assert(
|
||||||
iftrue=(&syscc eq 0),
|
iftrue=(&syscc eq 0),
|
||||||
desc=Check that a zero return code is returned if no called job fails
|
desc=Check that a zero return code is returned if no called job fails
|
||||||
Reference in New Issue
Block a user