1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-03 15:40:05 +00:00

fix: enabling reading from / writing to SAS Drive. Closes #334

This commit is contained in:
allan
2025-05-19 10:19:10 +01:00
parent 376800d464
commit 7117e2e8e9
2 changed files with 40 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ run;
desc=Check if created file exists
)
%put TEST 2 - dataset upload ;
%put TEST 3 - dataset upload ;
data temp;
x=1;
run;
@@ -52,4 +52,27 @@ filename ds "%sysfunc(pathname(work))/temp.sas7bdat";
%mp_assert(
iftrue=(%mfv_existfile(&mcTestAppLoc/temp/&file..sas7bdat)=1),
desc=Check if created dataset exists
)
)
%put TEST 4 - create a .sas file;
filename f4 temp;
data _null_;
file f4;
put '%put hello FromSASStudioBailey; ';
run;
%mv_createfile(path=&mcTestAppLoc/temp, name=test4.sas,inref=f4,mdebug=1)
%mp_assert(
iftrue=(%mfv_existfile(&mcTestAppLoc/temp/&file..sas)=1),
desc=Check if created sas program exists
)
%put TEST 5 - reading from files service and writing back;
filename sendfrom filesrvc folderpath="&mcTestAppLoc/temp" filename='test4.sas';
OPTIONS MERROR SYMBOLGEN MLOGIC MPRINT;
%mv_createfile(path=&mcTestAppLoc/temp,name=test5.sas,inref=sendfrom,mdebug=1) ;