Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
/ inlinesas Public archive
forked from wharton/inlinesas

Run SAS code from within a Python script.

License

Notifications You must be signed in to change notification settings

sangrey/inlinesas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inlinesas

Call SAS from within a Python script. Pass your SAS code as a string to the call_SAS function.

Usage:

from inlinesas import call_SAS

sascode = 'your SAS code as a string'
result = call_SAS(sascode)

# You can also specify a location (using absolute path) for the logfile.
#
# If no logfile location is specified, no logfile will be created.

result = call_SAS(sascode, log_location='/path/to/file.log')

You can access the returncode, stdout, and stderr of your SAS run:

result.returncode

result.stdout

result.stderr

This current copy is a fork of the wrds inlinesas module. I did this so that I could use it to access TAQ. It is designed to be run on the WRDS server.

About

Run SAS code from within a Python script.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%