<?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: sas variable incorrect diaplay in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-variable-incorrect-diaplay/m-p/386796#M277258</link>
    <description>Thank you thank you thank you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;It worked!!!&lt;BR /&gt;</description>
    <pubDate>Wed, 09 Aug 2017 20:28:01 GMT</pubDate>
    <dc:creator>NadiaK</dc:creator>
    <dc:date>2017-08-09T20:28:01Z</dc:date>
    <item>
      <title>sas variable incorrect diaplay</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-variable-incorrect-diaplay/m-p/386789#M277256</link>
      <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to sas and I am stumped with one of my numeric variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I have a variable name 'sampleid' which is 14 digits long- no space or dots or commas. When I imported my csv file to sas the sampleid of 020613020202021 looks like this: 2.02E+12. Can anyone help with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:43:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-variable-incorrect-diaplay/m-p/386789#M277256</guid>
      <dc:creator>NadiaK</dc:creator>
      <dc:date>2017-08-09T19:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: sas variable incorrect diaplay</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-variable-incorrect-diaplay/m-p/386792#M277257</link>
      <description>&lt;P&gt;Proc Import in addition to guessing variable types defaults to a "best" format for non-date or time variables.&lt;/P&gt;
&lt;P&gt;You can get more digits displayed by assigning a format with more allowed digits such as best14. or F14.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that your variable is being treated as numeric so your leading zeroes would require a Z14. format to show them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can change the format a number of ways. Best is at reading.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data mytable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set mytable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; format sampleid z14.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;is inefficient but simple. Proc datasets can modify formats of variables in place. Or the point-and-click on the table column header should allow setting the format.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-variable-incorrect-diaplay/m-p/386792#M277257</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-09T19:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: sas variable incorrect diaplay</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-variable-incorrect-diaplay/m-p/386796#M277258</link>
      <description>Thank you thank you thank you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;It worked!!!&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2017 20:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-variable-incorrect-diaplay/m-p/386796#M277258</guid>
      <dc:creator>NadiaK</dc:creator>
      <dc:date>2017-08-09T20:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: sas variable incorrect diaplay</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-variable-incorrect-diaplay/m-p/386851#M277259</link>
      <description>&lt;P&gt;If it is really an ID then you probably will want to read it as character instead of reading it as a number. 14 digits is close to the maximum integer that SAS can store uniquely in a numeric variable.&lt;/P&gt;
&lt;PRE&gt;23    data _null_;
24      x=constant('exactint');
25      put x= comma24. ;
26    run;

x=9,007,199,254,740,992
&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 00:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-variable-incorrect-diaplay/m-p/386851#M277259</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-08-10T00:59:14Z</dc:date>
    </item>
  </channel>
</rss>

