<?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: Copy SAS Table to Network as sas7bdat file in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/628262#M18847</link>
    <description>&lt;P&gt;I found that using the "Download Data Files to PC..." task was the way to accomplish what I wanted. The way to get there is to click on "Tasks" &amp;gt; "Data" &amp;gt;&amp;nbsp;"Download Data Files to PC...".&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 16:12:35 GMT</pubDate>
    <dc:creator>DGBK</dc:creator>
    <dc:date>2020-02-28T16:12:35Z</dc:date>
    <item>
      <title>Copy SAS Table to Network as sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/626364#M18806</link>
      <description>&lt;P&gt;I am trying to use the "Copy Files" task to export a .sas7bdat file to a file on our server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I start my workflow, I pull in a file using the copy method, which works completely fine. This allows me to save a backup of the table in a file. Unfortunately, I cannot figure out how to copy the updated file back to our server when the process ends. I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Object reference not set to an instance of an object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how I can export a copy of the table using the "Copy Files" task? Is it possible I need to export it with a different extension?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 22:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/626364#M18806</guid>
      <dc:creator>DGBK</dc:creator>
      <dc:date>2020-02-20T22:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SAS Table to Network as sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/626373#M18807</link>
      <description>&lt;P&gt;Not sure exactly what you are doing here. What server are you referring to? So you are trying to copy from your SAS server where your EG programs run to another network server? If this is the case then the SAS server has to be able to reference folders on the other server.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 23:13:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/626373#M18807</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-02-20T23:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SAS Table to Network as sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/626478#M18810</link>
      <description>&lt;P&gt;Maybe I should rephrase my question. I want to save a copy of a SAS table as a sas7bdat file. I would like to be able to save it in a folder. This folder can be on my computer or on network resources. I currently copy a file from a network folder (picture it as a file on my desktop if that helps) into SAS EG, but I cannot figure out how to copy an altered version of it back to the folder. I get a complaint because it is a table instead of a file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do what I am asking using "Tasks&amp;gt;Data&amp;gt;Copy Files..." ? If this were a file with any other extension, the method I am using would work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 14:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/626478#M18810</guid>
      <dc:creator>DGBK</dc:creator>
      <dc:date>2020-02-21T14:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SAS Table to Network as sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/626479#M18811</link>
      <description>&lt;P&gt;Can you explain more about that tool and how you are using it.&lt;/P&gt;
&lt;P&gt;First does it support bi-directional copying?&amp;nbsp; Sounds like before you used it to move files into SAS and now you want to use it move a file out of SAS.&lt;/P&gt;
&lt;P&gt;Second how did you tell it the name of the file you want to move?&amp;nbsp; If you created a dataset in SAS then normally you reference it as LIBREF.MEMNAME.&amp;nbsp; Where LIBREF is a pointer to the directory where the file exists. And MEMNAME is the basename of the file.&amp;nbsp; So if your SAS process created OUT.NEWFILE then to build the physical name of that file you could use :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  length filename $256;
  filename = catx('/',pathname('out'),cats('memname','.sas7bdat'));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So if OUT points to /home/me/sasds then filename will be '/home/me/sasds/memname.sas7bdat'.&amp;nbsp; And that is the file you want to tell the COPY FILES task/step to copy.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 14:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/626479#M18811</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-21T14:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SAS Table to Network as sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/628262#M18847</link>
      <description>&lt;P&gt;I found that using the "Download Data Files to PC..." task was the way to accomplish what I wanted. The way to get there is to click on "Tasks" &amp;gt; "Data" &amp;gt;&amp;nbsp;"Download Data Files to PC...".&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 16:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Copy-SAS-Table-to-Network-as-sas7bdat-file/m-p/628262#M18847</guid>
      <dc:creator>DGBK</dc:creator>
      <dc:date>2020-02-28T16:12:35Z</dc:date>
    </item>
  </channel>
</rss>

