Sure, just use SASPy's download method of your SASsession object (look for download in the API doc: https://sassoftware.github.io/saspy/api.html#
you would do something like the following:
resutls = sas.download(r'D:/sas_test_data', sas.workpath+'sas.sas7bdat)
give it a try!
Tom
Tried to copy it here:
download(localfile: str, remotefile: str, overwrite: bool = True, **kwargs)
This method downloads a remote file from the SAS servers file system.
| Parameters: |
- localfile – path to the local file to create or overwrite
- remotefile – path to remote file
- overwrite – overwrite the output file if it exists?
|
| Returns: |
dict with 2 keys {‘Success’ : bool, ‘LOG’ : str}
|