<?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 tabulate-Use Proc format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-Use-Proc-format/m-p/585690#M167088</link>
    <description>&lt;P&gt;I found the solution.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
value &lt;SPAN&gt;Z1Fmt&lt;/SPAN&gt;
2-4='2-4'
5-6='5-6'
;
Run;

PROC tabulate DATA=rawdata  ;
class z2/order=freq;
class z1/order=internal;
TABLE  z2=' ' all,z1*n*f=8.0 all*n*f=8.0/printmiss box='z2' misstext='0';
keylabel n=' ';
format Z1 &lt;SPAN&gt;Z1Fmt&lt;/SPAN&gt;.;
RUN;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Sep 2019 03:51:35 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2019-09-03T03:51:35Z</dc:date>
    <item>
      <title>proc tabulate-Use Proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-Use-Proc-format/m-p/585689#M167087</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to use user defined format in order to use new groups of variable Z1.&lt;/P&gt;
&lt;P&gt;What is the way to modify proc tabulate code in order to use formatted groups of Z1?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format ;&lt;BR /&gt;value&amp;nbsp; Z1Fmt&lt;BR /&gt;2-4='2-4'&lt;BR /&gt;5-6='5-6'&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;PRE&gt;&lt;CODE class=" language-sas"&gt;data rawdata;
input ID  Z1  Z2 $;
cards;
1 2 xjfjjj
2 3 djdjdj
3 3 xjfjjj
4 4 djdjdj
5 5 xjfjjj
6 5 djdjdj
7 6 djdjdj
8 6 asasas
9 6 asasas
10 6 djdjdj
;
run;

 
PROC tabulate DATA=rawdata  ;
class z2/order=freq;
class z1/order=internal;
TABLE  z2=' ' all,z1*n*f=8.0 all*n*f=8.0/printmiss box='z2' misstext='0';
keylabel n=' ';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Sep 2019 03:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-Use-Proc-format/m-p/585689#M167087</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-09-03T03:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate-Use Proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-Use-Proc-format/m-p/585690#M167088</link>
      <description>&lt;P&gt;I found the solution.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
value &lt;SPAN&gt;Z1Fmt&lt;/SPAN&gt;
2-4='2-4'
5-6='5-6'
;
Run;

PROC tabulate DATA=rawdata  ;
class z2/order=freq;
class z1/order=internal;
TABLE  z2=' ' all,z1*n*f=8.0 all*n*f=8.0/printmiss box='z2' misstext='0';
keylabel n=' ';
format Z1 &lt;SPAN&gt;Z1Fmt&lt;/SPAN&gt;.;
RUN;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Sep 2019 03:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-Use-Proc-format/m-p/585690#M167088</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-09-03T03:51:35Z</dc:date>
    </item>
  </channel>
</rss>

