<?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: change variable length in PROC datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/change-variable-length-in-PROC-datasets/m-p/445261#M111549</link>
    <description>&lt;P&gt;In the regression use the NAMELEN option on the PROC statement to set the length so that its not truncated. You can also examine the PARMLABEL option to see the formatted label.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you cannot change the length via PROC DATASETS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;You cannot change the length of a variable using the LENGTH statement or the LENGTH= option in an ATTRIB statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p16vqq5oedlmkin1373cqyalhpo6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p16vqq5oedlmkin1373cqyalhpo6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 13 Mar 2018 18:17:34 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-03-13T18:17:34Z</dc:date>
    <item>
      <title>change variable length in PROC datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-variable-length-in-PROC-datasets/m-p/445259#M111548</link>
      <description>&lt;P&gt;I am running regressions in a Macro, and after each regression, the estimates are appended to a dataset (COEFF). So, the length of the first variable (name of the parameter) is set after the first regression. This gives an issue where if parameters' names of later regressions are longer, they will be cut down, giving this WARNING message :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Variable Parameter has different lengths on BASE and DATA files (BASE 13 DATA 18).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I use the following code to append datasets after each regression:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC datasets nolist; append base=coeff data=temp force; RUN;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;coeff&amp;nbsp;does not exist before running any regression, temp is the parameter estimates of the current regression&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 18:10:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-variable-length-in-PROC-datasets/m-p/445259#M111548</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2018-03-13T18:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: change variable length in PROC datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-variable-length-in-PROC-datasets/m-p/445261#M111549</link>
      <description>&lt;P&gt;In the regression use the NAMELEN option on the PROC statement to set the length so that its not truncated. You can also examine the PARMLABEL option to see the formatted label.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you cannot change the length via PROC DATASETS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;You cannot change the length of a variable using the LENGTH statement or the LENGTH= option in an ATTRIB statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p16vqq5oedlmkin1373cqyalhpo6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p16vqq5oedlmkin1373cqyalhpo6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 13 Mar 2018 18:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-variable-length-in-PROC-datasets/m-p/445261#M111549</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-13T18:17:34Z</dc:date>
    </item>
  </channel>
</rss>

