execute_command: execute_command

Description Usage Arguments Examples

View source: R/execute_command.R

Description

Sends a SAS command to the workspace server for execution. Workspace server can be connected either by server name or by server url with server port. If none of these connections are provided, default workspace server from API configuration file will be used.

Usage

1
2
3
execute_command(url = NULL, repositoryName = "Foundation",
  serverName = NULL, serverUrl = NULL, serverPort = NULL,
  logEnabled = TRUE, command, asDataFrame = FALSE)

Arguments

url

URL of the server with installed SAS9API.

repositoryName

Repository name.

serverName

Workspace server name.

serverUrl

Workspace server URL.

serverPort

Workspace server port.

logEnabled

logical. Enables log output in endpoint response.

command

SAS command to execute.

asDataFrame

logical. Determines the content of the response returned by the function. If FALSE, the function will return full JSON response. If TRUE, the function will return only payload part of the response transformed into a dataframe.

Examples

1
2
execute_command(url, serverUrl, serverPort,
command = "proc print data=sashelp.class; run;", logEnabled = TRUE)

anlaytium-group/rsas9api documentation built on Nov. 2, 2019, 1:54 p.m.