<?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 shorten SAS dataset output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-shorten-SAS-dataset-output/m-p/794152#M254613</link>
    <description>&lt;P&gt;The log told you what was wrong twice, MIssing ')' and Expecting a ) in red.&lt;/P&gt;
&lt;P&gt;Add an extra bracket.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously without your data I can't test the code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/415299"&gt;@sasstatstudent&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the tip. I copied and pasted your edit onto my code. Unfortunately it didn't work, as it gave me the Errors shown below (In the meantime, I'll look at the webpages you linked in your reply):&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="Screen Shot 2022-02-02 at 8.30.06 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68170i4210AFA236A330C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-02-02 at 8.30.06 PM.png" alt="Screen Shot 2022-02-02 at 8.30.06 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 02:16:12 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-02-03T02:16:12Z</dc:date>
    <item>
      <title>How to shorten SAS dataset output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-shorten-SAS-dataset-output/m-p/794143#M254610</link>
      <description>&lt;P&gt;Hello, I'm having trouble figuring out how to reduce my PROC REG procedure dataset table to only contain jackknife residuals greater than 2. Here is my my code (libname removed for privacy)&amp;nbsp;and my dataset table output, saved as a PDF file, since the table was too big to post here (500 observations). Thanks in Advance!&lt;/P&gt;&lt;PRE&gt;data assignm2p1;&lt;BR /&gt;set shr.eclsksub;&lt;BR /&gt;run;&lt;BR /&gt;proc reg data=assignm2p1;&lt;BR /&gt;model c1rgscal= c1r4rscl c1r4mscl / r influence vif;&lt;BR /&gt;output out=assignm2p1 rstudent=jackknife h=leverage cookd=influence;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;proc print data=assignm2p1;&lt;BR /&gt;where (abs(jackknife)&amp;gt;2);&lt;BR /&gt;var jackknife leverage influence ;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 23:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-shorten-SAS-dataset-output/m-p/794143#M254610</guid>
      <dc:creator>sasstatstudent</dc:creator>
      <dc:date>2022-02-02T23:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to shorten SAS dataset output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-shorten-SAS-dataset-output/m-p/794144#M254611</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/415299"&gt;@sasstatstudent&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;STRONG&gt; I'm having trouble figuring out how to reduce my PROC REG procedure dataset table to only contain jackknife residuals greater than 2&lt;/STRONG&gt;. Here is my my code (libname removed for privacy)&amp;nbsp;and my dataset table output, saved as a PDF file, since the table was too big to post here (500 observations). Thanks in Advance!&lt;/P&gt;
&lt;PRE&gt;data &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;assignm2p1&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;BR /&gt;set shr.eclsksub;&lt;BR /&gt;run;&lt;BR /&gt;proc reg data=assignm2p1;&lt;BR /&gt;model c1rgscal= c1r4rscl c1r4mscl / r influence vif;&lt;BR /&gt;output out=&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;assignm2p1&lt;/STRONG&gt; &lt;/FONT&gt;rstudent=jackknife h=leverage cookd=influence;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;proc print data=assignm2p1;&lt;BR /&gt;where (abs(jackknife)&amp;gt;2);&lt;BR /&gt;var jackknife leverage influence ;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;1. You gave the output data set the same name as your input data set. You have replaced the data set now, which is a bad idea. Give it a different name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You do filter the data set in the PRINT, so that seems to work correctly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the output data set filtered you can add that WHERE statement directly to the OUTPUT statement as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=assignm2p1;
model c1rgscal= c1r4rscl c1r4mscl / r influence vif;
output out=residuals (where=(abs(jackknife)&amp;gt;2) rstudent=jackknife h=leverage cookd=influence;
run;
quit;

proc print data=residuals;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Some good guides on how to control ODS output:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/11/19/select-ods-tables-wildcards-regular-expressions-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/11/19/select-ods-tables-wildcards-regular-expressions-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/04/08/pointcounterpoint-ods-select.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2013/04/08/pointcounterpoint-ods-select.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 00:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-shorten-SAS-dataset-output/m-p/794144#M254611</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-03T00:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to shorten SAS dataset output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-shorten-SAS-dataset-output/m-p/794150#M254612</link>
      <description>&lt;P&gt;Thanks for the tip. I copied and pasted your edit onto my code. Unfortunately it didn't work, as it gave me the Errors shown below (In the meantime, I'll look at the webpages you linked in your reply):&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="Screen Shot 2022-02-02 at 8.30.06 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68170i4210AFA236A330C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-02-02 at 8.30.06 PM.png" alt="Screen Shot 2022-02-02 at 8.30.06 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 01:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-shorten-SAS-dataset-output/m-p/794150#M254612</guid>
      <dc:creator>sasstatstudent</dc:creator>
      <dc:date>2022-02-03T01:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to shorten SAS dataset output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-shorten-SAS-dataset-output/m-p/794152#M254613</link>
      <description>&lt;P&gt;The log told you what was wrong twice, MIssing ')' and Expecting a ) in red.&lt;/P&gt;
&lt;P&gt;Add an extra bracket.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously without your data I can't test the code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/415299"&gt;@sasstatstudent&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the tip. I copied and pasted your edit onto my code. Unfortunately it didn't work, as it gave me the Errors shown below (In the meantime, I'll look at the webpages you linked in your reply):&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="Screen Shot 2022-02-02 at 8.30.06 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68170i4210AFA236A330C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-02-02 at 8.30.06 PM.png" alt="Screen Shot 2022-02-02 at 8.30.06 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 02:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-shorten-SAS-dataset-output/m-p/794152#M254613</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-03T02:16:12Z</dc:date>
    </item>
  </channel>
</rss>

