From 2fa9e4828668f402b661b73924f13570977e0e06 Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Tue, 11 May 2021 23:36:40 +0300 Subject: [PATCH] chore: automated commit --- tests/viya/mv_getjoblog.test.sas | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/viya/mv_getjoblog.test.sas b/tests/viya/mv_getjoblog.test.sas index af0615d..594f6ab 100644 --- a/tests/viya/mv_getjoblog.test.sas +++ b/tests/viya/mv_getjoblog.test.sas @@ -19,6 +19,7 @@ filename testref temp; data _null_; file testref; + put 'data;run;'; put 'endsas;'; run; %mv_createjob( @@ -52,10 +53,15 @@ run; data _null_; - infile mylog; + infile mylog end=eof; input; - if index(_infile_,'endsas;') then call symputx('found',1); - else call symputx('found',0); + putlog _infile_; + retain found 0; + if index(_infile_,'endsas;') then do; + found=1; + call symputx('found',found); + end; + else if eof and found ne 1 then call symputx('found',0); run; %mp_assert(