<?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: SAS DI Datasets to be exported as csv files in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Datasets-to-be-exported-as-csv-files/m-p/830251#M20531</link>
    <description>What are the properties of the data folder? Are the tables SAS tables?&lt;BR /&gt;What do you mean by local folder? Local for the server where SAS is running or a workstation where you are running SAS clients (ex. SAS management console &amp;amp; SAS enterprise guide)?&lt;BR /&gt;What are you going to use to run the export code? A batch process on the server or SAS Enterprise Guide or ???</description>
    <pubDate>Thu, 25 Aug 2022 09:39:18 GMT</pubDate>
    <dc:creator>JosvanderVelden</dc:creator>
    <dc:date>2022-08-25T09:39:18Z</dc:date>
    <item>
      <title>SAS DI Datasets to be exported as csv files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Datasets-to-be-exported-as-csv-files/m-p/830221#M20530</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a Data folder in SAS DI which has over 152 Tables. I need to export these 152 datasets to be copied as .csv files and need to be exported to a local folder .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you let me know&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 05:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Datasets-to-be-exported-as-csv-files/m-p/830221#M20530</guid>
      <dc:creator>laxmanpai</dc:creator>
      <dc:date>2022-08-25T05:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Datasets to be exported as csv files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Datasets-to-be-exported-as-csv-files/m-p/830251#M20531</link>
      <description>What are the properties of the data folder? Are the tables SAS tables?&lt;BR /&gt;What do you mean by local folder? Local for the server where SAS is running or a workstation where you are running SAS clients (ex. SAS management console &amp;amp; SAS enterprise guide)?&lt;BR /&gt;What are you going to use to run the export code? A batch process on the server or SAS Enterprise Guide or ???</description>
      <pubDate>Thu, 25 Aug 2022 09:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Datasets-to-be-exported-as-csv-files/m-p/830251#M20531</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2022-08-25T09:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Datasets to be exported as csv files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Datasets-to-be-exported-as-csv-files/m-p/831889#M20543</link>
      <description>&lt;P&gt;Assuming these table have different table structures.&lt;/P&gt;
&lt;P&gt;The answer depends on what level of lineage you require.&lt;/P&gt;
&lt;P&gt;From implementation/coding perspective, you can easily write a macro that exports all table in a libref to a certain location.&lt;/P&gt;
&lt;P&gt;Fore some traceability. you can add this into a DI Studio job an link all source table to this step.&lt;/P&gt;
&lt;P&gt;For full lineage, you would use the file writer transformation on each source table and have a corresponding external file object defined.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 09:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Datasets-to-be-exported-as-csv-files/m-p/831889#M20543</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-09-06T09:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Datasets to be exported as csv files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Datasets-to-be-exported-as-csv-files/m-p/846538#M20638</link>
      <description>&lt;P&gt;Suppose we have the following dataset in SAS:&lt;/P&gt;&lt;P&gt;/*create dataset*/&lt;BR /&gt;data my_data;&lt;BR /&gt;input A B C;&lt;BR /&gt;datalines;&lt;BR /&gt;1 4 76&lt;BR /&gt;2 3 49&lt;BR /&gt;2 3 85&lt;BR /&gt;4 5 88&lt;BR /&gt;2 2 90&lt;BR /&gt;4 6 78&lt;BR /&gt;5 9 80&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/*view dataset*/&lt;BR /&gt;proc print data=my_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We can use the following code to export this dataset to a CSV file called data.csv:&lt;/P&gt;&lt;P&gt;/*export dataset*/&lt;BR /&gt;proc export data=my_data&lt;BR /&gt;outfile="/home/u13181/data.csv"&lt;BR /&gt;dbms=csv&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I can then navigate to the location on my computer where I exported the file and view it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data in the CSV file matches the dataset from SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachel Gomez&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 06:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-Datasets-to-be-exported-as-csv-files/m-p/846538#M20638</guid>
      <dc:creator>RacheLGomez123</dc:creator>
      <dc:date>2022-11-28T06:44:08Z</dc:date>
    </item>
  </channel>
</rss>

