<?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 report, separating a column out in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545468#M74304</link>
    <description>&lt;P&gt;NOZERO option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=have nowd;
column  score grouplabel1,(estcirel ProbF);
define score/group "Score";
define grouplabel1/across " " order=INTERNAL nozero;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 23 Mar 2019 11:43:40 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-03-23T11:43:40Z</dc:date>
    <item>
      <title>Proc report, separating a column out</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545358#M74301</link>
      <description>&lt;P&gt;This is my SAS code, basically I did some analysis and generated a final table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value grouplabel 1="Overall" 2="Scrolling vs. Non-Scrolling" 3="BYOD vs Non-Scrolling" 4="Intelligent vs Non-intelligent";
run;

data have;
length score $ 50.;
input  score grouplabel1 estcirel ProbF;
cards;
score1	1	0.79	.
score1	2	0.80	0.45
score1	3	0.75	0.98
score1	4	0.78	0.45
score2	1	0.79	.
score2	2	0.80	0.45
score2	3	0.75	0.98
score2	4	0.78	0.45
;
run;

data have;
set have;
format grouplabel1 grouplabel.;
run;

proc report data=have;
column  score grouplabel1,(estcirel ProbF);
define score/group "Score";
define grouplabel1/across " " order=INTERNAL;

run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the output&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 571px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28132i06657551BF53FC16/image-dimensions/571x107?v=v2" width="571" height="107" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look at the table above, the overall has 2 colmns. I want it to only show the estcriel colmn and the the probf column is all missing (no p-value as there is no comparisons). So it is not useful to have that column in my final table.&amp;nbsp;&amp;nbsp;I am fairly new to proc report, how do I structure the dataset and set up my proc report&amp;nbsp; for the overall group to just show the&amp;nbsp;estcriel while the other groupings to show both columns (so other grouping is correct)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Want:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28133iFCCC9549AA964554/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 19:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545358#M74301</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2019-03-22T19:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report, separating a column out</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545372#M74302</link>
      <description>&lt;P&gt;Try filtering those out with a WHERE clause?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=have;
where not (score='score1' and missing(probF));

column  score grouplabel1,(estcirel ProbF);
define score/group "Score";
define grouplabel1/across " " order=INTERNAL;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45253"&gt;@Tpham&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This is my SAS code, basically I did some analysis and generated a final table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value grouplabel 1="Overall" 2="Scrolling vs. Non-Scrolling" 3="BYOD vs Non-Scrolling" 4="Intelligent vs Non-intelligent";
run;

data have;
length score $ 50.;
input  score grouplabel1 estcirel ProbF;
cards;
score1	1	0.79	.
score1	2	0.80	0.45
score1	3	0.75	0.98
score1	4	0.78	0.45
score2	1	0.79	.
score2	2	0.80	0.45
score2	3	0.75	0.98
score2	4	0.78	0.45
;
run;

data have;
set have;
format grouplabel1 grouplabel.;
run;

proc report data=have;
column  score grouplabel1,(estcirel ProbF);
define score/group "Score";
define grouplabel1/across " " order=INTERNAL;

run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the output&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 571px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28132i06657551BF53FC16/image-dimensions/571x107?v=v2" width="571" height="107" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look at the table above, the overall has 2 colmns. I want it to only show the estcriel colmn and the the probf column is all missing (no p-value as there is no comparisons). So it is not useful to have that column in my final table.&amp;nbsp;&amp;nbsp;I am fairly new to proc report, how do I structure the dataset and set up my proc report&amp;nbsp; for the overall group to just show the&amp;nbsp;estcriel while the other groupings to show both columns (so other grouping is correct)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Want:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28133iFCCC9549AA964554/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 20:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545372#M74302</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-03-22T20:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report, separating a column out</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545377#M74303</link>
      <description>&lt;P&gt;Or perhaps a format to use with ProbF that will show text like "No comparison" for missing values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to say that seeing something that you state means no comparisons when there are 3 other comparisons involving the same variable looks very odd. If there is something else going on for those missing values perhaps a description is appropriate, or a symbol such as * and a footnote referencing that to explain why missing.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 21:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545377#M74303</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-22T21:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report, separating a column out</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545468#M74304</link>
      <description>&lt;P&gt;NOZERO option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=have nowd;
column  score grouplabel1,(estcirel ProbF);
define score/group "Score";
define grouplabel1/across " " order=INTERNAL nozero;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Mar 2019 11:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545468#M74304</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-03-23T11:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report, separating a column out</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545646#M74319</link>
      <description>Nice option there! Have to remember that for the future.</description>
      <pubDate>Sun, 24 Mar 2019 22:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-separating-a-column-out/m-p/545646#M74319</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-03-24T22:44:32Z</dc:date>
    </item>
  </channel>
</rss>

