Skip to contents

[Experimental] Run SAS code with a SAS session.

Usage

run_sas(sas_code, results = c("TEXT", "HTML"), sas_session = get_sas_session())

Arguments

sas_code

(character)
sas code to be executed.

results

(character)
sas code execution results type.

sas_session

(saspy.sasbase.SASsession) SAS session.

Value

Named list with following elements:

  • LOG: string of SAS execution log.

  • LST: string of SAS execution result, in html or txt format.

Details

run_sas will run sas code through SAS session. The results is a named list of LST and LOG. The result part will be stored in LST, and log will be stored in LOG. If results argument is "TEXT", then results are in text format; if results argument is "HTML", then results are in html format.