<?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: Creating a table for my client in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530953#M145223</link>
    <description>Thank you for your comment.&lt;BR /&gt;&lt;BR /&gt;It looks that posting codes is okay here, but I'm having a problem posting a table (.doc or .pdf).&lt;BR /&gt;&lt;BR /&gt;Somebody was suggesting that this is a known issue for this site.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 29 Jan 2019 13:34:50 GMT</pubDate>
    <dc:creator>Yoko</dc:creator>
    <dc:date>2019-01-29T13:34:50Z</dc:date>
    <item>
      <title>Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530732#M145150</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a table (please see an attached file) from the data set below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA data1;&lt;/P&gt;&lt;P&gt;input id age sex;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 1 1&lt;BR /&gt;2 2 2&lt;BR /&gt;3 3 2&lt;BR /&gt;4 1 2&lt;BR /&gt;5 1 1&lt;BR /&gt;6 3 1&lt;BR /&gt;7 1 1&lt;BR /&gt;8 2 2&lt;BR /&gt;9 1 1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get numbers running multiple 'proc freq';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=data1 out=data1_sort; by exp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=data1_sort;&lt;BR /&gt;table age sex;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=data1_sort;&lt;BR /&gt;table age;&lt;BR /&gt;by exp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=data1_sort;&lt;BR /&gt;table sex;&lt;BR /&gt;by exp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I have to copy and paste the results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way(s) to get the table directly from the data set without copying and pasting results?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yoko&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 19:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530732#M145150</guid>
      <dc:creator>Yoko</dc:creator>
      <dc:date>2019-01-28T19:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530739#M145153</link>
      <description>&lt;P&gt;can you paste the wanted output here rather than attachment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also,where is exp variable in data1?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 19:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530739#M145153</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-28T19:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530742#M145154</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sorry, I have to replace the data set with this one:&lt;BR /&gt;&lt;BR /&gt;DATA data1;&lt;BR /&gt;input id age sex exp;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 1 1 0&lt;BR /&gt;2 2 2 1&lt;BR /&gt;3 3 2 0&lt;BR /&gt;4 1 2 1&lt;BR /&gt;5 1 1 1&lt;BR /&gt;6 3 1 1&lt;BR /&gt;7 1 1 0&lt;BR /&gt;8 2 2 0&lt;BR /&gt;9 1 1 0&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, the table looks like this;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All individuals&lt;BR /&gt;&lt;BR /&gt;Exposure&lt;BR /&gt;&lt;BR /&gt;Yes&lt;BR /&gt;&lt;BR /&gt;No&lt;BR /&gt;&lt;BR /&gt;Number&lt;BR /&gt;&lt;BR /&gt;%&lt;BR /&gt;&lt;BR /&gt;Number&lt;BR /&gt;&lt;BR /&gt;%&lt;BR /&gt;&lt;BR /&gt;Number&lt;BR /&gt;&lt;BR /&gt;%&lt;BR /&gt;&lt;BR /&gt;Age&lt;BR /&gt;&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sex&lt;BR /&gt;&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you can not see the table well, please let me know.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yoko&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jan 2019 19:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530742#M145154</guid>
      <dc:creator>Yoko</dc:creator>
      <dc:date>2019-01-28T19:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530743#M145155</link>
      <description>&lt;P&gt;still no.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran your code to make a guess to figure out your expected output but my dumb brain isn't picking it&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 19:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530743#M145155</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-28T19:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530744#M145156</link>
      <description>How about this? All individuals Exposure Yes No Number % Number % Number % Age 1 2 3 Sex 1 2</description>
      <pubDate>Mon, 28 Jan 2019 20:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530744#M145156</guid>
      <dc:creator>Yoko</dc:creator>
      <dc:date>2019-01-28T20:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530747#M145157</link>
      <description>It’s getting messy. I’ll re-post my question.&lt;BR /&gt;Sorry about this..&lt;BR /&gt;&lt;BR /&gt;Yoko&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jan 2019 20:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530747#M145157</guid>
      <dc:creator>Yoko</dc:creator>
      <dc:date>2019-01-28T20:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530755#M145160</link>
      <description>&lt;P&gt;Post any code or related comments in the right place. In the editor window you have a running man to add your code and {i} for adding any log info and so on.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26641i900501B7AB6B41CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 20:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530755#M145160</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2019-01-28T20:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530756#M145161</link>
      <description>&lt;P&gt;Ok, in that case, delete this one as to avoid duplication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;secondly,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt;&amp;nbsp; has recommended the way to post in the right way&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 20:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530756#M145161</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-28T20:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530760#M145163</link>
      <description>It looks that I cannot delete my post once I receive responses.&lt;BR /&gt;&lt;BR /&gt;I'll try to find out how to show my table properly..&lt;BR /&gt;&lt;BR /&gt;(my second attempt seemed to have failed.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yoko&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jan 2019 20:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530760#M145163</guid>
      <dc:creator>Yoko</dc:creator>
      <dc:date>2019-01-28T20:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530801#M145179</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/152732"&gt;@Yoko&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;It looks that I cannot delete my post once I receive responses.&lt;BR /&gt;&lt;BR /&gt;I'll try to find out how to show my table properly..&lt;BR /&gt;&lt;BR /&gt;(my second attempt seemed to have failed.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yoko&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Perhaps a screen capture, create image file as jpeg or png and use the PHOTOS icon here to upload the picture.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 21:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530801#M145179</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-28T21:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530815#M145182</link>
      <description>&lt;P&gt;This is a shot in the dark, since you still need to show more of what you need.&amp;nbsp; But this likely comes close to what you are asking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc tabulate data=have missing;&lt;/P&gt;
&lt;P&gt;class exp age sex;&lt;/P&gt;
&lt;P&gt;tables exp age sex, n pctn;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a lot of things to play with using PROC TABULATE, to control the format of the table.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 22:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530815#M145182</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-28T22:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table for my client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530953#M145223</link>
      <description>Thank you for your comment.&lt;BR /&gt;&lt;BR /&gt;It looks that posting codes is okay here, but I'm having a problem posting a table (.doc or .pdf).&lt;BR /&gt;&lt;BR /&gt;Somebody was suggesting that this is a known issue for this site.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Jan 2019 13:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table-for-my-client/m-p/530953#M145223</guid>
      <dc:creator>Yoko</dc:creator>
      <dc:date>2019-01-29T13:34:50Z</dc:date>
    </item>
  </channel>
</rss>

