Skip to contents

Submit SLC Code

Usage

slc_submit(code, connection = NULL)

Arguments

code

Character string containing SLC code

connection

SLC connection object. If NULL (default), a new connection will be created automatically.

Value

Results from SLC execution

Examples

if (FALSE) { # \dontrun{
# Initialize connection
conn <- slc_init()

# Submit basic SLC code
slc_submit("data test; x = 1; y = 2; run;", conn)

# Submit code with automatic connection
slc_submit("proc print data=sashelp.class; run;")

# Read and submit the SAS code from file (sas_file)
sas_code <- readLines(sas_file)

slc_submit(paste(sas_code, collapse = "\n"), conn)
} # }