<?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 Number of digits displayed is less than what's in the column in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/716825#M38067</link>
    <description>&lt;P&gt;In using the SAS EG this morning, I'm seeing only 16 digits of a column that is 18 digits long with 18 digits of characters in all records.&amp;nbsp; When I exported the dataset to Excel, I got all 18 digits.&amp;nbsp; Why and how can I display all the digits properly?&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 14:56:35 GMT</pubDate>
    <dc:creator>JasonL</dc:creator>
    <dc:date>2021-02-04T14:56:35Z</dc:date>
    <item>
      <title>Number of digits displayed is less than what's in the column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/716825#M38067</link>
      <description>&lt;P&gt;In using the SAS EG this morning, I'm seeing only 16 digits of a column that is 18 digits long with 18 digits of characters in all records.&amp;nbsp; When I exported the dataset to Excel, I got all 18 digits.&amp;nbsp; Why and how can I display all the digits properly?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 14:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/716825#M38067</guid>
      <dc:creator>JasonL</dc:creator>
      <dc:date>2021-02-04T14:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Number of digits displayed is less than what's in the column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/716826#M38068</link>
      <description>&lt;P&gt;Is this a numeric variable or a character variable? (Just because it is digits, it can still be a character variable according to SAS)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the format on this variable in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you expanded the column (by dragging the right boundary of the column further to the right)?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 15:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/716826#M38068</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-04T15:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Number of digits displayed is less than what's in the column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/716834#M38069</link>
      <description>&lt;P&gt;Thanks a lot Paige!&amp;nbsp; The format was in fact $16.&amp;nbsp; Once I changed it to $18., it displayed all 18 digits.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 15:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/716834#M38069</guid>
      <dc:creator>JasonL</dc:creator>
      <dc:date>2021-02-04T15:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Number of digits displayed is less than what's in the column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/716936#M38079</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22542"&gt;@JasonL&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks a lot Paige!&amp;nbsp; The format was in fact $16.&amp;nbsp; Once I changed it to $18., it displayed all 18 digits.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is why I consider it standard practice to NOT attach $&amp;nbsp; format to character variables.&amp;nbsp; SAS does not need it since it knows how to display character strings and if you attach too short (or even too wide) a format to a character variable it can cause confusion.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  format _character_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Feb 2021 23:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/716936#M38079</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-04T23:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Number of digits displayed is less than what's in the column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/717048#M38080</link>
      <description>&lt;P&gt;Oh I did not know that.&amp;nbsp; Under what circumstances should $ format be used?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 11:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/717048#M38080</guid>
      <dc:creator>JasonL</dc:creator>
      <dc:date>2021-02-05T11:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Number of digits displayed is less than what's in the column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/717071#M38081</link>
      <description>&lt;P&gt;You might use the $ format when using a formatted style PUT statement. For example to make it easier to create a fixed column report.&lt;/P&gt;
&lt;P&gt;You might use the $ format in a procedure like PROC FREQ to have the data grouped by the beginning characters in the value.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.class;
  tables name ;
  format name $1. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar for numeric variables you do not need to attach a format permanently to the variable when you make the dataset.&amp;nbsp; SAS knows how to display numbers also.&amp;nbsp; But in the case of numeric variable SAS will in general use the BEST12. format to display the values.&amp;nbsp; So if you have large integers you might want to use a format to prevent if from switching to scientific notation and and not showing all of the digits.&amp;nbsp; Or if have non integer values&amp;nbsp; you might want to attach a format have a consistent number of decimal places displayed.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 14:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/717071#M38081</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-05T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Number of digits displayed is less than what's in the column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/717073#M38082</link>
      <description>&lt;P&gt;Ok thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 14:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Number-of-digits-displayed-is-less-than-what-s-in-the-column/m-p/717073#M38082</guid>
      <dc:creator>JasonL</dc:creator>
      <dc:date>2021-02-05T14:23:50Z</dc:date>
    </item>
  </channel>
</rss>

