<?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: Viewing SAS catalog entries and formats within SAS Enterprise Guide in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Viewing-SAS-catalog-entries-and-formats-within-SAS-Enterprise/m-p/440375#M109980</link>
    <description>&lt;P&gt;I don't understand what you are doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, in case this helps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. SAS can only store 16-digit integers (on PC/unix) before losing precision and distorting the values, when using numeric variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;so&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;put(CLM_ID ,22.)&lt;/FONT&gt;&amp;nbsp; is bound to produce bad results if you have that many digits. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;You should never use numeric variables for such a long series of digits.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If you have that many digits or more always use a string&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. If you have large integers stored as numeric variables, always use a length of 8 bytes for that variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 03:26:20 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-02-27T03:26:20Z</dc:date>
    <item>
      <title>Viewing SAS catalog entries and formats within SAS Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Viewing-SAS-catalog-entries-and-formats-within-SAS-Enterprise/m-p/440373#M109978</link>
      <description>&lt;P&gt;Hi SAs users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I needed some help with loading the Claim_id field in Oracle database(character field of 20 byte length) . Claim_id was numericin the source data and i used put statement to convert into character with length &amp;amp; format of 20 bytes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FINAL dataset is looking fine (7 byte claimid ), but ORacle load has shrinked to 5 byte. what i am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table FINAL as&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; select a.*,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; put(CLM_ID ,22.) as CLM_ID1&amp;nbsp; format = $20. ,&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 02:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Viewing-SAS-catalog-entries-and-formats-within-SAS-Enterprise/m-p/440373#M109978</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2018-02-27T02:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing SAS catalog entries and formats within SAS Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Viewing-SAS-catalog-entries-and-formats-within-SAS-Enterprise/m-p/440375#M109980</link>
      <description>&lt;P&gt;I don't understand what you are doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, in case this helps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. SAS can only store 16-digit integers (on PC/unix) before losing precision and distorting the values, when using numeric variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;so&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;put(CLM_ID ,22.)&lt;/FONT&gt;&amp;nbsp; is bound to produce bad results if you have that many digits. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;You should never use numeric variables for such a long series of digits.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If you have that many digits or more always use a string&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. If you have large integers stored as numeric variables, always use a length of 8 bytes for that variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 03:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Viewing-SAS-catalog-entries-and-formats-within-SAS-Enterprise/m-p/440375#M109980</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-27T03:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing SAS catalog entries and formats within SAS Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Viewing-SAS-catalog-entries-and-formats-within-SAS-Enterprise/m-p/440378#M109983</link>
      <description>Thanks for the help. I changed it to 8 byte and it worked fine loading the data to Oracle tables.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Ana</description>
      <pubDate>Tue, 27 Feb 2018 03:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Viewing-SAS-catalog-entries-and-formats-within-SAS-Enterprise/m-p/440378#M109983</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2018-02-27T03:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing SAS catalog entries and formats within SAS Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Viewing-SAS-catalog-entries-and-formats-within-SAS-Enterprise/m-p/440389#M109986</link>
      <description>&lt;P&gt;The title has no&amp;nbsp;link whatsoever with the question asked.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 04:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Viewing-SAS-catalog-entries-and-formats-within-SAS-Enterprise/m-p/440389#M109986</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-27T04:48:54Z</dc:date>
    </item>
  </channel>
</rss>

