<?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: Proc Export w/ repeating Variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305739#M60937</link>
    <description>&lt;P&gt;Shmuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I output to a CSV using PROC REPORT then same way as PROC EXPORT?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2016 19:18:06 GMT</pubDate>
    <dc:creator>tqphan</dc:creator>
    <dc:date>2016-10-19T19:18:06Z</dc:date>
    <item>
      <title>Proc Export w/ repeating Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305733#M60935</link>
      <description>&lt;P&gt;I'm running a report and exporting the data to a CSV file but wondered if there was a way to remove the repeating values in the first column.&lt;/P&gt;&lt;P&gt;The way the data file is set up is that the IDs are duplicated based on whether are multiple values in any of the columns so each observation is unique and I dont want to remove them. I guess this would be for mainly an asthetic value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&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;&amp;nbsp; Col1 &amp;nbsp;&amp;nbsp;&amp;nbsp; Col2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;/P&gt;&lt;P&gt;Loan A&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; X &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; A &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; …&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Loan A&lt;/STRIKE&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; X &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; C &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Loan A&lt;/STRIKE&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; X &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; E &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;/P&gt;&lt;P&gt;Loan B&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; A &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; …&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Loan B&lt;/STRIKE&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; B &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; …&lt;/P&gt;&lt;P&gt;Loan C&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; …&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; …&lt;/P&gt;&lt;P&gt;Loan D&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; …&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; …&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 18:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305733#M60935</guid>
      <dc:creator>tqphan</dc:creator>
      <dc:date>2016-10-19T18:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export w/ repeating Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305738#M60936</link>
      <description>&lt;P&gt;It can be done using &lt;STRONG&gt;PROC REPORT :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;proc report data=have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;columns ID COL1 COL2 COL3 ...;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define ID / order ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define COL1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;define COL2;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define COL3;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 19:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305738#M60936</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-10-19T19:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export w/ repeating Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305739#M60937</link>
      <description>&lt;P&gt;Shmuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I output to a CSV using PROC REPORT then same way as PROC EXPORT?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 19:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305739#M60937</guid>
      <dc:creator>tqphan</dc:creator>
      <dc:date>2016-10-19T19:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export w/ repeating Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305746#M60938</link>
      <description>&lt;P&gt;Exporting data will do that.&lt;/P&gt;
&lt;P&gt;CSV is intended for data interchange in which case you would not really want the values to dispear from some records.&lt;/P&gt;
&lt;P&gt;If you use a report procedure such as Proc Report or Tabulate that will allow things to group then you could write the results fo the procedure. Since it sounds like you may actually want a report and not a data interchange&amp;nbsp;then use ODS RTF or PDF with an appropriate report procedure.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 19:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305746#M60938</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-19T19:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export w/ repeating Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305879#M60946</link>
      <description>&lt;P&gt;CSV = Comma Separated Variable text file. &amp;nbsp;Is designed for data transfer. &amp;nbsp;It is&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; an Excel file!&lt;/P&gt;
&lt;P&gt;Now decide what you want that output for, if it is to send data somewhere, then go ahead and export to CSV, and all the data will appear, ID on each line per the definition of a CSV. &amp;nbsp;If however you just want some review output in Excel, then use proc report and create a report in an Excel file - ods tagsets.excelxp or excel will do the trick and you have all the functionality therein.&lt;/P&gt;
&lt;P&gt;Again, &lt;U&gt;&lt;STRONG&gt;CSV&lt;/STRONG&gt;&lt;/U&gt; is not the same as&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;Excel&lt;/STRONG&gt;&lt;/U&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 08:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-w-repeating-Variables/m-p/305879#M60946</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-20T08:38:47Z</dc:date>
    </item>
  </channel>
</rss>

