Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
ms_triggerstp.sas File Reference

Triggers a SASjs Server STP using the /SASjsApi/code/trigger endpoint. More...

Go to the source code of this file.

Detailed Description

Triggers the STP and returns the sessionId

Example:

%ms_triggerstp(/some/stored/program
  ,debug=131
  ,outds=work.myresults
)
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=(_null_)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]outds=(work.ms_triggerstp) Set to the name of a dataset to contain the sessionId. If this dataset already exists, and contains the sessionId, it will be appended to. Format:
sessionId:$36
20241028074744-54132-1730101664824

SAS Macros

Definition in file ms_triggerstp.sas.