<?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: Transforming data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Transforming-data/m-p/707037#M26438</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235939"&gt;@togglefroggle&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you very much! I need to create into a spreadsheet so you post is very helpful!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That should be something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ODS Excel file="c:\folder\subfolder\myfilename.xlsx";

&amp;lt;proc tabulate code&amp;gt;

ods excel close;&lt;/PRE&gt;
&lt;P&gt;If that doesn't work because you don't have the right licenses you could use ODS CSVALL, with a CSV extension instead of xlsx, to create a CSV file that Excel should be able to open. Depending on use you may then need to save as an xlsx file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Path needs to be to a location you have write privileges. If you are working with a server install of SAS you would need to use a path on the server, not your local computer. Then move the file after if needed.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2020 18:34:15 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-12-18T18:34:15Z</dc:date>
    <item>
      <title>Transforming data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Transforming-data/m-p/707017#M26433</link>
      <description>&lt;P&gt;I am trying to transform my data using sas so I can use it for other applications, my data is a list of all counties in Oregon and an ID number, here is an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;County name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Baker County&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;21&lt;/P&gt;&lt;P&gt;Baker County&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;21&lt;/P&gt;&lt;P&gt;Baker County&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;45&lt;/P&gt;&lt;P&gt;Baker County&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;54&lt;/P&gt;&lt;P&gt;Brenton County&amp;nbsp; &amp;nbsp; 21&lt;/P&gt;&lt;P&gt;Brenton County&amp;nbsp; &amp;nbsp; 18&lt;/P&gt;&lt;P&gt;Brenton County&amp;nbsp; &amp;nbsp; 18&lt;/P&gt;&lt;P&gt;Brenton County&amp;nbsp; &amp;nbsp; 18&lt;/P&gt;&lt;P&gt;Brenton County&amp;nbsp; &amp;nbsp; 105&lt;/P&gt;&lt;P&gt;Brenton County&amp;nbsp; &amp;nbsp; 108&lt;/P&gt;&lt;P&gt;Coos county&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 21&lt;/P&gt;&lt;P&gt;Coos county&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 76&lt;/P&gt;&lt;P&gt;Coos county&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 76&lt;/P&gt;&lt;P&gt;Coos county&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 105&lt;/P&gt;&lt;P&gt;etc..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to put my data into this form:&lt;/P&gt;&lt;P&gt;&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;18&amp;nbsp; &amp;nbsp; &amp;nbsp;21&amp;nbsp; &amp;nbsp;45&amp;nbsp; &amp;nbsp; 54&amp;nbsp; &amp;nbsp;76&amp;nbsp; &amp;nbsp;105&amp;nbsp; &amp;nbsp;108&amp;nbsp; etc...&lt;/P&gt;&lt;P&gt;Baker County&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Brenton County&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&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; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;Coos County&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&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; 1&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;Where i have a count for how many of those IDS are in each county, keep in mind that this is an example dataset and my dataset has about 500,000 rows with all counties and around 70 distinct IDs in total, so every county should have at least a few of every ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble figuring out how to do this so any helps using sas or even if you have an idea of how to do it differently would be much appreciated. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 17:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Transforming-data/m-p/707017#M26433</guid>
      <dc:creator>togglefroggle</dc:creator>
      <dc:date>2020-12-18T17:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Transforming-data/m-p/707023#M26435</link>
      <description>&lt;P&gt;What file format do the "other applications" expect to use?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Creating output like this is easy:&lt;/P&gt;
&lt;PRE&gt;data example;
 infile datalines dsd;
 input Countyname $ 1-15  ID;
datalines;
Baker County   21
Baker County   21
Baker County   45
Baker County   54
Brenton County 21
Brenton County 18
Brenton County 18
Brenton County 18
Brenton County 105
Brenton County 108
Coos county    21
Coos county    76
Coos county    76
Coos county    105
;

proc tabulate data=example;
   class countyname id;
   table countyname='',
         id=''*n=''
         /misstext=' '
   ;
run;&lt;/PRE&gt;
&lt;P&gt;If the output needs to be a spread or such then you use the ODS to create an output file.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 17:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Transforming-data/m-p/707023#M26435</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-18T17:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Transforming-data/m-p/707032#M26436</link>
      <description>Thank you very much! I need to create into a spreadsheet so you post is very helpful!</description>
      <pubDate>Fri, 18 Dec 2020 17:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Transforming-data/m-p/707032#M26436</guid>
      <dc:creator>togglefroggle</dc:creator>
      <dc:date>2020-12-18T17:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Transforming-data/m-p/707037#M26438</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235939"&gt;@togglefroggle&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you very much! I need to create into a spreadsheet so you post is very helpful!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That should be something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ODS Excel file="c:\folder\subfolder\myfilename.xlsx";

&amp;lt;proc tabulate code&amp;gt;

ods excel close;&lt;/PRE&gt;
&lt;P&gt;If that doesn't work because you don't have the right licenses you could use ODS CSVALL, with a CSV extension instead of xlsx, to create a CSV file that Excel should be able to open. Depending on use you may then need to save as an xlsx file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Path needs to be to a location you have write privileges. If you are working with a server install of SAS you would need to use a path on the server, not your local computer. Then move the file after if needed.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 18:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Transforming-data/m-p/707037#M26438</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-18T18:34:15Z</dc:date>
    </item>
  </channel>
</rss>

