Production Ready Macros for SAS Application Developers
mp_stpsetup.sas
Go to the documentation of this file.
1 /**
2  @file
3  @brief Configures a non STP session like an STP session
4  @details When running a web enabled STP in batch mode, there are a few things
5  that need to be configured to avoid errors - such as setting up the _webout
6  fileref, or providing dummy h54s macros.
7 
8  @version 9.2
9  @author Allan Bowe
10  @source https://github.com/Boemska/macrocore
11 
12 **/
13 
14 %macro mp_stpsetup(
15 )/*/STORE SOURCE*/;
16 
17 %if &sysprocessmode ne SAS Stored Process Server %then %do;
18  filename _webout cache; /* cache mode enables pdf etc output */
19 
20  /* h54s macros need to have global scope */
21  data _null_;
22  call execute('%macro hfsheader();%mend;%macro hfsfooter();%mend;');
23  call execute('%macro hfsOutDataset(one,two,three);%mend;');
24  call execute('%macro hfsGetDataset(one,two);%mend;');
25  run;
26 %end;
27 %mend;