<?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 to make a table with a discretion picture format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12169#M1571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; No worries&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2011 23:13:38 GMT</pubDate>
    <dc:creator>VX_Xc</dc:creator>
    <dc:date>2011-12-13T23:13:38Z</dc:date>
    <item>
      <title>How to make a table with a discretion picture format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12164#M1566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually in my tables (from either proc freq/tabulate) some cells contain very low observations. I'm not allowed to print these out due to "legal" reasons (since the people in my sample data have to be anonymous, table of workplace adress could in theory find who the person is, if only 1 person work at the workplace).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the above example, I usually make a new dataset containing a list of workplaces with more then 5 observations (make a new variable called "maxcount") from the original dataset, and than merge this back and write something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data X; set X_original; where maxcount_workplace&amp;gt;5; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get a table with workplaces with more than 5 employees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is quite time consuming (even with a copy/paste of the syntax approach).&lt;/P&gt;&lt;P&gt;I heard that making a picture format could give me the same result e.g. changing the actual result/cells in a table giving some conditions (something like: if "cell value in a table"&amp;lt;=5 then replace with " -/missing/something else ".)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the above is less confusing than it probably is, but I really would appreciate it if someone can tell me of it is possible with a picture format to do the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2011 22:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12164#M1566</guid>
      <dc:creator>Dan_yu_W</dc:creator>
      <dc:date>2011-12-11T22:56:21Z</dc:date>
    </item>
    <item>
      <title>How to make a table with a discretion picture format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12165#M1567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could accomplish the task in one proc sql step.&amp;nbsp; E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from sashelp.class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by age&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; having count(age) gt 4&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2011 23:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12165#M1567</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-11T23:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table with a discretion picture format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12166#M1568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;Proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;Format&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; LFive&lt;/SPAN&gt;&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; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; -&amp;lt; &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;5&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;'Something Else'&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;tabulate&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; = sashelp.shoes &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: teal; font-size: 10pt;"&gt;LFive.&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; region subsidiary;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; stores;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp; subsidiary ALL, MEAN*region*stores; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make the Format such as above first then add it to your proc tabulate statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 04:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12166#M1568</guid>
      <dc:creator>VX_Xc</dc:creator>
      <dc:date>2011-12-12T04:15:30Z</dc:date>
    </item>
    <item>
      <title>How to make a table with a discretion picture format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12167#M1569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assume all your workplace datasets are in the same library then use dictionary tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname wp '/my/files';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table gt5 as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select memname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from sashelp.vtable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where libname='WP' and nobs&amp;gt;4;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 15:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12167#M1569</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-12-12T15:34:06Z</dc:date>
    </item>
    <item>
      <title>How to make a table with a discretion picture format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12168#M1570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. The format worked great. Saved me (and my co-workers) a lot of time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 17:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12168#M1570</guid>
      <dc:creator>Dan_yu_W</dc:creator>
      <dc:date>2011-12-12T17:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table with a discretion picture format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12169#M1571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; No worries&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 23:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-with-a-discretion-picture-format/m-p/12169#M1571</guid>
      <dc:creator>VX_Xc</dc:creator>
      <dc:date>2011-12-13T23:13:38Z</dc:date>
    </item>
  </channel>
</rss>

