ms_runstp.sas File Reference

Executes a SASjs Server Stored Program. More...

Go to the source code of this file.

Detailed Description

Runs a Stored Program (using POST method) and extracts the webout and log from the response JSON.

Example:

%ms_runstp(/some/stored/program
  ,debug=131
  ,outref=weboot
)
Parameters
[in]pgmThe full path to the Stored Program in SASjs Drive (_program parameter)
[in]debug=(131) The value to supply to the _debug URL parameter
[in]mdebug=(0) Set to 1 to enable DEBUG messages
[in]inputparams=(<em>null</em>)A dataset containing name/value pairs in the following format:
name:$32 value:$10000
stpmacname some value
mustbevalidname can be anything, oops, abort!!
[in]inputfiles=(null) A dataset containing fileref/name/filename in the following format:
fileref:$8 name:$32 filename:$256
someref some_name some_filename.xls
fref2 another_file zyx_v2.csv
[out]outref=(outweb) The output fileref to contain the response JSON (will be created using temp engine)
[out]outlogds=(null) Set to the name of a dataset to contain the log. Table format:
line:$2000
log line 1
log line 2

SAS Macros

Definition in file ms_runstp.sas.