<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Save sas7bdat file on my local pc, using saspy, sas on demand for acedemics in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821318#M34903</link>
    <description>&lt;P&gt;Sure, just use SASPy's download method of your SASsession object (look for download in the API doc:&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/api.html#" target="_blank"&gt;https://sassoftware.github.io/saspy/api.html#&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you would do something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;resutls = sas.download(r'&lt;SPAN&gt;D:/sas_test_data', sas.workpath+'sas.sas7bdat)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;give it a try!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried to copy it here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="descname"&gt;download&lt;/CODE&gt;&lt;SPAN class="sig-paren"&gt;(&lt;/SPAN&gt;&lt;EM&gt;localfile: str&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;remotefile: str&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;overwrite: bool = True&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;**kwargs&lt;/EM&gt;&lt;SPAN class="sig-paren"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This method downloads a remote file from the SAS servers file system.&lt;/P&gt;
&lt;TABLE class="docutils field-list" frame="void" rules="none"&gt;&lt;COLGROUP&gt;&lt;COL class="field-name" /&gt;&lt;COL class="field-body" /&gt;&lt;/COLGROUP&gt;
&lt;TBODY valign="top"&gt;
&lt;TR class="field-odd field"&gt;
&lt;TH class="field-name"&gt;Parameters:&lt;/TH&gt;
&lt;TD class="field-body"&gt;
&lt;UL class="first simple"&gt;
&lt;LI&gt;&lt;STRONG&gt;localfile&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;– path to the local file to create or overwrite&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;remotefile&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;– path to remote file&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;overwrite&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;– overwrite the output file if it exists?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="field-even field"&gt;
&lt;TH class="field-name"&gt;Returns:&lt;/TH&gt;
&lt;TD class="field-body"&gt;
&lt;P class="first last"&gt;dict with 2 keys {‘Success’ : bool, ‘LOG’ : str}&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 17:58:23 GMT</pubDate>
    <dc:creator>sastpw</dc:creator>
    <dc:date>2022-07-01T17:58:23Z</dc:date>
    <item>
      <title>Save sas7bdat file on my local pc, using saspy, sas on demand for acedemics</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821246#M34890</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 04:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821246#M34890</guid>
      <dc:creator>AnushaShreyas</dc:creator>
      <dc:date>2022-07-01T04:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Save sas7bdat file on my local pc, using saspy, sas on demand for acedemics</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821253#M34891</link>
      <description>&lt;P&gt;Log on to SAS On Demand and use the download button in SAS Studio.&lt;/P&gt;
&lt;P&gt;In which library (or path) did you create the dataset?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 06:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821253#M34891</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-01T06:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Save sas7bdat file on my local pc, using saspy, sas on demand for acedemics</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821256#M34892</link>
      <description>Thanks for the reply, I am using local path to fetch the dataset (i.e D:/sas_test_data/sas.csv). And I am using python jupyter notebook to get this data and convert it into sas.sas7bdat and its saved in sas server.&lt;BR /&gt;But I want it to save in same location (i.e D:/sas_test_data/sas.sas7bdat) using saspy and python only, bec i am using it for automation, I cant always go to sas studio and get it downloaded, if you have any solutions for this please let me know, Thanks.</description>
      <pubDate>Fri, 01 Jul 2022 07:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821256#M34892</guid>
      <dc:creator>AnushaShreyas</dc:creator>
      <dc:date>2022-07-01T07:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Save sas7bdat file on my local pc, using saspy, sas on demand for acedemics</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821318#M34903</link>
      <description>&lt;P&gt;Sure, just use SASPy's download method of your SASsession object (look for download in the API doc:&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/api.html#" target="_blank"&gt;https://sassoftware.github.io/saspy/api.html#&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you would do something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;resutls = sas.download(r'&lt;SPAN&gt;D:/sas_test_data', sas.workpath+'sas.sas7bdat)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;give it a try!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried to copy it here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="descname"&gt;download&lt;/CODE&gt;&lt;SPAN class="sig-paren"&gt;(&lt;/SPAN&gt;&lt;EM&gt;localfile: str&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;remotefile: str&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;overwrite: bool = True&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;**kwargs&lt;/EM&gt;&lt;SPAN class="sig-paren"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This method downloads a remote file from the SAS servers file system.&lt;/P&gt;
&lt;TABLE class="docutils field-list" frame="void" rules="none"&gt;&lt;COLGROUP&gt;&lt;COL class="field-name" /&gt;&lt;COL class="field-body" /&gt;&lt;/COLGROUP&gt;
&lt;TBODY valign="top"&gt;
&lt;TR class="field-odd field"&gt;
&lt;TH class="field-name"&gt;Parameters:&lt;/TH&gt;
&lt;TD class="field-body"&gt;
&lt;UL class="first simple"&gt;
&lt;LI&gt;&lt;STRONG&gt;localfile&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;– path to the local file to create or overwrite&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;remotefile&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;– path to remote file&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;overwrite&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;– overwrite the output file if it exists?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="field-even field"&gt;
&lt;TH class="field-name"&gt;Returns:&lt;/TH&gt;
&lt;TD class="field-body"&gt;
&lt;P class="first last"&gt;dict with 2 keys {‘Success’ : bool, ‘LOG’ : str}&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 17:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821318#M34903</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2022-07-01T17:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Save sas7bdat file on my local pc, using saspy, sas on demand for acedemics</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821579#M34929</link>
      <description>&lt;P&gt;Thank you, Tom&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 11:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Save-sas7bdat-file-on-my-local-pc-using-saspy-sas-on-demand-for/m-p/821579#M34929</guid>
      <dc:creator>AnushaShreyas</dc:creator>
      <dc:date>2022-07-05T11:54:03Z</dc:date>
    </item>
  </channel>
</rss>

