![]() |
Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
|
Create a web service in SAS 9 or Viya. More...
Go to the source code of this file.
Creates a SASJS ready Stored Process in SAS 9 or Job Execution Service in SAS Viya
Usage:
%* compile macros ; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas"; %inc mc; %* write some code; filename ft15f001 temp; parmcards4; %* fetch any data from frontend ; %webout(FETCH) data example1 example2; set sashelp.class; run; %* send data back; %webout(OPEN) %webout(ARR,example1) * Array format, fast, suitable for large tables ; %webout(OBJ,example2) * Object format, easier to work with ; %webout(CLOSE) ;;;; %mp_createwebservice(path=/Public/app/common,name=appInit,code=ft15f001,replace=YES)
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 |
Definition in file mp_createwebservice.sas.