<?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 ERROR: The decimal specification of 15 must be less than the width specification of 15 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-decimal-specification-of-15-must-be-less-than-the/m-p/751759#M236694</link>
    <description>&lt;P&gt;Hi. I have a CSV file with 5600 rows and 331 columns. I successfully import the data using PROC IMPORT into RESULTS.&lt;/P&gt;&lt;P&gt;Once imported I can visualize the data in SAS and even use PROC FREQ and PROC TABULATE on RESULTS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need to recode some variables and for that I need to use PROC DATA.&lt;/P&gt;&lt;P&gt;So a very simple command just to put my imported data into a DATA PROC.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA data;
	SET RESULTS;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But this gives the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: The decimal specification of 15 must be less than the width specification of 15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Why is that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jul 2021 15:03:19 GMT</pubDate>
    <dc:creator>commitsudoku</dc:creator>
    <dc:date>2021-07-02T15:03:19Z</dc:date>
    <item>
      <title>ERROR: The decimal specification of 15 must be less than the width specification of 15</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-decimal-specification-of-15-must-be-less-than-the/m-p/751759#M236694</link>
      <description>&lt;P&gt;Hi. I have a CSV file with 5600 rows and 331 columns. I successfully import the data using PROC IMPORT into RESULTS.&lt;/P&gt;&lt;P&gt;Once imported I can visualize the data in SAS and even use PROC FREQ and PROC TABULATE on RESULTS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need to recode some variables and for that I need to use PROC DATA.&lt;/P&gt;&lt;P&gt;So a very simple command just to put my imported data into a DATA PROC.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA data;
	SET RESULTS;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But this gives the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: The decimal specification of 15 must be less than the width specification of 15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Why is that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 15:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-decimal-specification-of-15-must-be-less-than-the/m-p/751759#M236694</guid>
      <dc:creator>commitsudoku</dc:creator>
      <dc:date>2021-07-02T15:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The decimal specification of 15 must be less than the width specification of 15</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-decimal-specification-of-15-must-be-less-than-the/m-p/751761#M236696</link>
      <description>&lt;P&gt;Run a PROC CONTENTS to see which variable(s) have the incriminated format, which you can then correct with PROC DATASETS.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 15:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-decimal-specification-of-15-must-be-less-than-the/m-p/751761#M236696</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-02T15:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The decimal specification of 15 must be less than the width specification of 15</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-decimal-specification-of-15-must-be-less-than-the/m-p/751764#M236698</link>
      <description>&lt;P&gt;Run PROC CONTENTS on the dataset.&lt;/P&gt;
&lt;P&gt;Find the offending format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=results out=contents noprint;
run;

data _null_;
  set contents;
  where formatd &amp;gt;= formatl &amp;gt;0 ;
  put (libname memname name format formatd formatl) (=);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Fix it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example why not just remove any formats that PROC IMPORT decided to attach?&amp;nbsp; You normally do not need formats attached to numeric variables (unless they are date, time or datetime values).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA data;
   SET RESULTS;
   format _all_;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jul 2021 15:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-decimal-specification-of-15-must-be-less-than-the/m-p/751764#M236698</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-02T15:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The decimal specification of 15 must be less than the width specification of 15</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-decimal-specification-of-15-must-be-less-than-the/m-p/752256#M236936</link>
      <description>Thank you so much! It worked perfectly!</description>
      <pubDate>Tue, 06 Jul 2021 10:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-decimal-specification-of-15-must-be-less-than-the/m-p/752256#M236936</guid>
      <dc:creator>commitsudoku</dc:creator>
      <dc:date>2021-07-06T10:39:08Z</dc:date>
    </item>
  </channel>
</rss>

