<?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: Length of variables in Proc Summary output out statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/631720#M77763</link>
    <description>&lt;P&gt;What do you want to gain by it? It is best to let the numeric variables keep the default maximum length of 8 (because of precision).&lt;/P&gt;</description>
    <pubDate>Thu, 12 Mar 2020 22:08:34 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-03-12T22:08:34Z</dc:date>
    <item>
      <title>Length of variables in Proc Summary output out statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/631710#M77762</link>
      <description>&lt;P&gt;In Proc Summary, is there any way to set the length of variables in the output out statement?&amp;nbsp; I'm trying to avoid having to write a separate data step to set the variable lengths.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 21:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/631710#M77762</guid>
      <dc:creator>johngds</dc:creator>
      <dc:date>2020-03-12T21:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Length of variables in Proc Summary output out statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/631720#M77763</link>
      <description>&lt;P&gt;What do you want to gain by it? It is best to let the numeric variables keep the default maximum length of 8 (because of precision).&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 22:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/631720#M77763</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-12T22:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Length of variables in Proc Summary output out statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/631880#M77767</link>
      <description>&lt;P&gt;Setting variable lengths will enable me to cut the size of the file down from 4.5 GB to about 2.5 GB.&amp;nbsp; I'll still be able to maintain precision.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;What do you want to gain by it? It is best to let the numeric variables keep the default maximum length of 8 (because of precision).&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 14:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/631880#M77767</guid>
      <dc:creator>johngds</dc:creator>
      <dc:date>2020-03-13T14:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Length of variables in Proc Summary output out statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/632203#M77784</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/316348"&gt;@johngds&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the KEEPLEN option of the &lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p04vbvpcjg2vrjn1v8wyf0daypfi.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;OUTPUT statement&lt;/A&gt; of PROC SUMMARY to let the statistics inherit the lengths of the analysis variables. If this is not applicable to your analysis dataset (because the variables in question have full length there), you can apply it to a &lt;A href="https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=n07vq6hmss6f67n1vhnnn5cw0chh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;DATA step &lt;EM&gt;view&lt;/EM&gt;&lt;/A&gt;&amp;nbsp;quickly created from the dataset using an appropriate LENGTH statement. (Edit: You may want to set the&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n0xwcm523zbueln17krhgsbupntq.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;VARLENCHK= system option&lt;/A&gt;&amp;nbsp;to NOWARN in this case.)&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 23:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/632203#M77784</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-03-14T23:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Length of variables in Proc Summary output out statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/632252#M77793</link>
      <description>&lt;P&gt;You might be better off implementing your stats in a data step in the first place. Could you show the code for the summary procedure?&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 12:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/632252#M77793</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-15T12:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Length of variables in Proc Summary output out statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/632271#M77797</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/316348"&gt;@johngds&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Setting variable lengths will enable me to cut the size of the file down from 4.5 GB to about 2.5 GB.&amp;nbsp; I'll still be able to maintain precision.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What do you want to gain by it? It is best to let the numeric variables keep the default maximum length of 8 (because of precision).&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Is that with or without compression?&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 19:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/632271#M77797</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-15T19:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Length of variables in Proc Summary output out statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/632289#M77798</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/316348"&gt;@johngds&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In Proc Summary, is there any way to set the length of variables in the output out statement?&amp;nbsp; I'm trying to avoid having to write a separate data step to set the variable lengths.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which variables?&amp;nbsp; What statistics are you generating?&amp;nbsp; It might make sense to truncate the storage of integer values, but the mean, standard deviation and variance of integer is going to be a floating point value.&amp;nbsp; Those variables you won't want to truncate the storage.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 23:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/632289#M77798</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-15T23:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Length of variables in Proc Summary output out statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/632416#M77812</link>
      <description>&lt;P&gt;Thanks to all who responded.&amp;nbsp; I was not aware of the KEEPLEN option for the OUTPUT OUT= statement.&amp;nbsp; Clean and easy, and it saves an additional data step.&amp;nbsp; The variable I am limiting the length to 4 is an integer and takes a value between 0 and 20,000.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 12:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-of-variables-in-Proc-Summary-output-out-statement/m-p/632416#M77812</guid>
      <dc:creator>johngds</dc:creator>
      <dc:date>2020-03-16T12:31:29Z</dc:date>
    </item>
  </channel>
</rss>

