Macros for SAS Application Developers File Reference

Create a Web-Ready Stored Program. More...

Go to the source code of this file.

Detailed Description

This macro creates a Stored Program along with the necessary precode to enable the webout() macro

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

%* parmcards lets us write to a text file from open code ; filename ft15f001 temp; parmcards4; webout(FETCH) %* do some sas, any inputs are now already WORK tables; 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) ;;;; ms_createwebservice(path=/Public/app/common,name=appInit,code=ft15f001)

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

[in]path=(0) The full SASjs Drive path in which to create the service
[in]name=Stored Program name
[in]desc=The description of the service (not implemented yet)
[in]precode=Space separated list of filerefs, pointing to the code that needs to be attached to the beginning of the service (optional)
[in]code=(ft15f001) Space seperated fileref(s) of the actual code to be added
[in]mDebug=(0) set to 1 to show debug messages in the log

SAS Macros

Related Files

Allan Bowe

Definition in file