<?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: How do I create a csv file with column name header in DI Studio? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/485977#M15141</link>
    <description>&lt;P&gt;Screen capture didn't make it.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2018 22:53:02 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-08-10T22:53:02Z</dc:date>
    <item>
      <title>How do I create a csv file with column name header in DI Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/485976#M15140</link>
      <description>&lt;P&gt;Esteemed DI Studio Brain Trust,&lt;/P&gt;&lt;P&gt;This is my first DI studio (version 4.9) project so I'm prepared for a "Doh!" moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create csv external file&amp;nbsp; using transformations from a registered SAS table&amp;nbsp;in the following manner:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SAS Table] ===&amp;gt; [External File Writer] ==&amp;gt; [Registered External File]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1.&amp;nbsp; Create the external file metadata:&amp;nbsp; My Folder -&amp;gt; Navigate to my CSV File folder -&amp;gt; New -&amp;gt; External File -&amp;gt; Delimited&lt;/P&gt;&lt;P&gt;Step 2.&amp;nbsp; Configure the File Metadata:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; General -- Name: Test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; External File Location&amp;nbsp;--&amp;nbsp;&amp;nbsp; File name:&amp;nbsp; &amp;lt;super long path&amp;gt;\test.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delimiters &amp;amp; Parameters --&amp;nbsp; [x] Comma =&amp;gt; all other fields are defaults&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column Definitions -- [Import...] =&amp;gt; Get Column Definitions from Existing Table =&amp;gt;&amp;nbsp; Navigate to Registered table in&amp;nbsp;Folders view and migrate all columns to the file metadata.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 3:&amp;nbsp; Drag the source table onto the project&lt;/P&gt;&lt;P&gt;Step 4:&amp;nbsp; Drag External File Writer Transformation to project page and link the table to the file writer transformation&lt;/P&gt;&lt;P&gt;Step 5:&amp;nbsp; Drag the Registered File onto the project and link the File Writer transformation to the External File object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the File Writer transformation, I get data&amp;nbsp;(see attached screen capture) but it is missing the column name header in the first row.&amp;nbsp;&amp;nbsp;&amp;nbsp;I am praying I missed a radio button somewhere.&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 22:45:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/485976#M15140</guid>
      <dc:creator>Coloradomis</dc:creator>
      <dc:date>2018-08-10T22:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a csv file with column name header in DI Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/485977#M15141</link>
      <description>&lt;P&gt;Screen capture didn't make it.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 22:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/485977#M15141</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-10T22:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a csv file with column name header in DI Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/486039#M15142</link>
      <description>&lt;P&gt;Thanks for pointing that out.&amp;nbsp;&amp;nbsp; Newbie mistake, PNG files are not valid file types for attachments.&amp;nbsp; Here is a PDF.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Aug 2018 12:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/486039#M15142</guid>
      <dc:creator>Coloradomis</dc:creator>
      <dc:date>2018-08-11T12:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a csv file with column name header in DI Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/486093#M15143</link>
      <description>&lt;P&gt;Be sure to specify "2" as the Start Record (File Parameters - Advanced).&lt;/P&gt;
&lt;P&gt;Then, DIS assumes you want to insert columns headers in row 1.&lt;/P&gt;
&lt;P&gt;Not very intuitive, but External File objects were mostly designed for use with File Reader, which can see from many of the options (like INFILE statement options/override).&lt;/P&gt;</description>
      <pubDate>Sat, 11 Aug 2018 21:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/486093#M15143</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-08-11T21:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a csv file with column name header in DI Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/486100#M15144</link>
      <description>&lt;P&gt;Many Thanks, LinusH!&amp;nbsp; That did the trick.&amp;nbsp; For those of you that would like to see the solution, I attached a second screen shot that takes you through the solution.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 00:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-do-I-create-a-csv-file-with-column-name-header-in-DI-Studio/m-p/486100#M15144</guid>
      <dc:creator>Coloradomis</dc:creator>
      <dc:date>2018-08-12T00:11:16Z</dc:date>
    </item>
  </channel>
</rss>

