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
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.