Production Ready Macros for SAS Application Developers File Reference

Create a web service in SAS 9 or Viya. More...

Go to the source code of this file.

Detailed Description

Creates a SASJS ready Stored Process in SAS 9 or Job Execution Service in SAS Viya


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

%* write some code;
filename ft15f001 temp;
    %* fetch any data from frontend ;
    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 ;

SAS Macros

path=The full folder path where the service will be created
name=Service name. Avoid 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=Space seperated fileref(s) of the actual code to be added
replace=select YES to replace any existing service in that location
Allan Bowe

Definition in file