Macros for SAS Application Developers
https://github.com/sasjs/core
mx_testservice.sas File Reference

Will execute a SASjs web service on SAS 9, Viya or SASjs Server. More...

Go to the source code of this file.

Detailed Description

Prepares the input files and retrieves the resulting datasets from the response JSON.

Note - the _webout fileref should NOT be assigned prior to running this macro.

Parameters
[in]programThe _PROGRAM endpoint to test
[in]inputfiles=(0)A list of space seperated fileref:filename pairs as follows: inputfiles=inref:filename inref2:filename2
[in]inputdatasets=(0) All datasets in this space seperated list are converted into SASJS-formatted CSVs (see mp_ds2csv.sas) files and added to the list of inputfiles for ingestion. The dataset will be sent with the same name (no need for a colon modifier).
[in]inputparams=(0)A dataset containing name/value pairs in the following format:
name:$32 value:$1000
stpmacname some value
mustbevalidname can be anything, oops, abort!!
[in]debug=(log) Provide the _debug value
[in]mdebug=(0) Set to 1 to provide macro debugging
[in]viyaresult=(WEBOUT_JSON) The Viya result type to return. For more info, see mv_getjobresult.sas
[in]viyacontext=(SAS Job Execution compute context) The Viya compute context on which to run the service
[out]outlib=(0) Output libref to contain the final tables. Set to 0 if the service output is not in JSON format.
[out]outref=(0) Output fileref to create, to contain the full _webout response.

SAS Macros

Related Programs

Version
9.4
Author
Allan Bowe

Definition in file mx_testservice.sas.