I have imported .csv file from local pc and converted it into .sas7bdat file using saspy, the result is currently saving on sas server (cloud) , I need the file to be stored in my local system, As I am a new user I dont know much about using saspy please help me with this issue.
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: |
|
---|---|
Returns: |
dict with 2 keys {‘Success’ : bool, ‘LOG’ : str} |
Log on to SAS On Demand and use the download button in SAS Studio.
In which library (or path) did you create the dataset?
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: |
|
---|---|
Returns: |
dict with 2 keys {‘Success’ : bool, ‘LOG’ : str} |
Thank you, Tom
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.