63 %macro mm_createwebservice(
64 project=/User Folders/sasdemo
66 ,service=myFirstWebService
67 ,desc=This stp was created automatically by the mm_createwebservice macro
75 %
if &syscc ge 4 %then %
do;
81 %
if &mDebug=1 %then %let mD=;
82 %
else %let mD=%str(*);
83 %&mD.put Executing mm_createwebservice.sas;
87 %let work=%sysfunc(pathname(work));
88 %let tmpfile=__mm_createwebservice.temp;
91 %
if "&adapter"=
"h54s" %then %
do;
93 "https://raw.githubusercontent.com/Boemska/h54s/development/sasautos/h54s.sas";
96 filename __adaptr
"&adapter";
101 put
"/* Created on %sysfunc(today(),datetime19.) by %mf_getuser() */";
103 file
"&work/&tmpfile" lrecl=3000;
104 infile __adaptr end=last;
107 if last then put
'%bafGetDatasets()';
109 filename __adaptr clear;
112 %
if %length(&precode)>0 %then %
do;
114 file
"&work/&tmpfile" lrecl=3000 mod;
123 file
"&work/&tmpfile" lrecl=3000 mod;
130 %mm_createfolder(path=&project)
131 %
if &syscc ge 4 %then %
return;
134 %mm_createfolder(path=&project/&role)
135 %
if &syscc ge 4 %then %
return;
138 %mm_createstp(stpname=&service