<?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: Print only in PROC SEVERITY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455552#M115249</link>
    <description>&lt;P&gt;It printed everything except the table I want in the Results Viewer, and I still have the same error&amp;nbsp; :&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-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19968iB435CE5B01F4142E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I create an&amp;nbsp;&lt;SPAN&gt;output file?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Apr 2018 12:09:03 GMT</pubDate>
    <dc:creator>ingridf</dc:creator>
    <dc:date>2018-04-19T12:09:03Z</dc:date>
    <item>
      <title>Print only in PROC SEVERITY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455521#M115230</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PROC SEVERITY to estimate different distributions that fit my data as such :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc severity data=&amp;amp;arg._ATTRI_APPREN_SEV print=allfitstats ;
   loss MNT_COUT_UNIT;
   dist _predefined_  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My issue is that it prints everything in the Results viewer and I would just like the CDF, EDF &amp;amp; PDF estimation graphs and this table&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-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19963iA847061054FF3837/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I looked at the procedure and found the table name, which is why I added the "allfitstats" print option BUT it still prints everything in the Results Viewer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then tried this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods graphics on;
ods select AllFitStatistics ;
proc severity data=&amp;amp;arg._ATTRI_APPREN_SEV ;
loss MNT_COUT_UNIT;
dist _predefined_ ;
run;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;But that just gives me an error :&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-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19965i96891DF69A7D58AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455521#M115230</guid>
      <dc:creator>ingridf</dc:creator>
      <dc:date>2018-04-19T09:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Print only in PROC SEVERITY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455522#M115231</link>
      <description>&lt;P&gt;Well you can do:&lt;/P&gt;
&lt;PRE&gt;ods graphics on;
ods output AllFitStatistics=AllFitStatistics;
proc severity data=&amp;amp;arg._ATTRI_APPREN_SEV noprint;
  loss MNT_COUT_UNIT;
  dist _predefined_;
run;&amp;nbsp;&lt;BR /&gt;proc print data=AllFitStatistics;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;Change the proc print to only output what you want.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455522#M115231</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-19T09:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Print only in PROC SEVERITY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455526#M115232</link>
      <description>&lt;P&gt;Thanks for replying, just tried and it still gives me an error telling me the data doesn't exist&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-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19966i537CB6A0121092C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing the problem comes from&amp;nbsp;'AllFitStatistics' but I'm sure that's the table name :&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-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19967iB9DD8083A7CFFF8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 10:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455526#M115232</guid>
      <dc:creator>ingridf</dc:creator>
      <dc:date>2018-04-19T10:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Print only in PROC SEVERITY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455527#M115233</link>
      <description>&lt;P&gt;It tells you in the Warning message - drop the noprint from my code, then it will create the dataset.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will likely need to clear the results viewer:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dm 'odsresults; clear';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Probably simpler to just create an output file rather than use the results viewer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 10:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455527#M115233</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-19T10:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Print only in PROC SEVERITY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455552#M115249</link>
      <description>&lt;P&gt;It printed everything except the table I want in the Results Viewer, and I still have the same error&amp;nbsp; :&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-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19968iB435CE5B01F4142E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I create an&amp;nbsp;&lt;SPAN&gt;output file?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 12:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455552#M115249</guid>
      <dc:creator>ingridf</dc:creator>
      <dc:date>2018-04-19T12:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Print only in PROC SEVERITY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455565#M115255</link>
      <description>&lt;P&gt;You create an output dataset like this:&lt;/P&gt;
&lt;PRE&gt;ods graphics on;
ods output AllFitStatistics=AllFitStatistics;
proc severity data=&amp;amp;arg._ATTRI_APPREN_SEV;
  loss MNT_COUT_UNIT;
  dist _predefined_;
run;&amp;nbsp;&lt;BR /&gt;proc print data=AllFitStatistics;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;I don't have anything to test this with, but that should create a dataset.&amp;nbsp; Also you can try the out=options listed:&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_severity_sect028.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_severity_sect028.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There are examples under the examples tab.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 12:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455565#M115255</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-19T12:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Print only in PROC SEVERITY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455583#M115266</link>
      <description>&lt;P&gt;Tried this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods graphics on;
proc severity data=&amp;amp;arg._ATTRI_APPREN_SEV /*outstat=AllFitStatistics*/;
  loss MNT_COUT_UNIT;
  dist _predefined_;
run; 
proc print data=AllFitStatistics;
run&lt;/PRE&gt;&lt;P&gt;With &amp;amp; without OUTSTAT and both print everything along with the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'll just give up and let it as is. But the reason why I only want that specific table is because the full code is pretty long and I already have a lot in the Results View,&amp;nbsp;all of which I need.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 12:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-only-in-PROC-SEVERITY/m-p/455583#M115266</guid>
      <dc:creator>ingridf</dc:creator>
      <dc:date>2018-04-19T12:58:06Z</dc:date>
    </item>
  </channel>
</rss>

