mirror of
https://github.com/sasjs/core.git
synced 2026-04-24 08:41:32 +00:00
feat: new mf_readfile macro (and test)
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
@file
|
||||
@brief Testing mf_readfile.sas macro
|
||||
|
||||
<h4> SAS Macros </h4>
|
||||
@li mf_readfile.sas
|
||||
@li mp_assert.sas
|
||||
|
||||
**/
|
||||
|
||||
%let f=&sasjswork/myfile.txt;
|
||||
|
||||
%mf_writefile(&f,l1=some content,l2=more content)
|
||||
data _null_;
|
||||
infile "&f";
|
||||
input;
|
||||
putlog _infile_;
|
||||
run;
|
||||
|
||||
%mp_assert(
|
||||
iftrue=(&syscc=0),
|
||||
desc=Check code ran without errors,
|
||||
outds=work.test_results
|
||||
)
|
||||
%mp_assert(
|
||||
iftrue=(&f=some content),
|
||||
desc=Checking first line was ingested successfully,
|
||||
outds=work.test_results
|
||||
)
|
||||
Reference in New Issue
Block a user