Macros for SAS Application Developers File Reference

Create a Web Ready Stored Process. More...

Go to the source code of this file.

Detailed Description

This macro creates a Type 2 Stored Process with the mm_webout macro (and dependencies) included as pre-code.


%* compile macros ;
filename mc url "";
%inc mc;

%* parmcards lets us write to a text file from open code ;
filename ft15f001 temp;
    %* do some sas, any inputs are now already WORK tables;
    data example1 example2;
      set sashelp.class;
    %* send data back;
    %webout(ARR,example1) * Array format, fast, suitable for large tables ;
    %webout(OBJ,example2) * Object format, easier to work with ;

For more examples of using these web services with the SASjs Adapter, see:

path=The full path (in SAS Metadata) where the service will be created
name=Stored Process name. Avoid spaces - testing has shown that the check to avoid creating multiple STPs in the same folder with the same name does not work when the name contains spaces.
desc=The description of the service (optional)
precode=Space separated list of filerefs, pointing to the code that needs to be attached to the beginning of the service (optional)
code=(ft15f001) Space seperated fileref(s) of the actual code to be added
server=(SASApp) The server which will run the STP. Server name or uri is fine.
mDebug=(0) set to 1 to show debug messages in the log
replace=(YES) select NO to avoid replacing an existing service in that location
adapter=(sasjs) the macro uses the sasjs adapter by default. To use another adapter, add a (different) fileref here.

SAS Macros

Allan Bowe

Definition in file