<?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: Numeric data informat with character data (kilobytes= 2601k) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-data-informat-with-character-data-kilobytes-2601k/m-p/110769#M30723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, the field is 6 bytes long and here is an excerpt:&lt;/P&gt;&lt;P&gt;477273&lt;/P&gt;&lt;P&gt;477273&lt;/P&gt;&lt;P&gt;475727&lt;/P&gt;&lt;P&gt;475727&lt;/P&gt;&lt;P&gt;475727&lt;/P&gt;&lt;P&gt;475727&lt;/P&gt;&lt;P&gt;475727&lt;/P&gt;&lt;P&gt; 1001k&lt;/P&gt;&lt;P&gt; 1001k&lt;/P&gt;&lt;P&gt; 1001k&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;I really don't care what output looks like, as long as it is in "a" correct format. I need to summarize this data and the input format needs to be big enough to hold petabyte/terabyte size fields? I'm not sure I am stating that correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2012 20:23:51 GMT</pubDate>
    <dc:creator>G_I_Jeff</dc:creator>
    <dc:date>2012-07-18T20:23:51Z</dc:date>
    <item>
      <title>Numeric data informat with character data (kilobytes= 2601k)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-data-informat-with-character-data-kilobytes-2601k/m-p/110767#M30721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried searching for the answer throughout the forums and Google but can't seem to search correctly, not sure how to ask this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an input file I need to read through and pull storage numbers off of. The field is 6 bytes in length and is represented in bytes. But once the numbers climb above a meg they begin to represent themselves as 2601k, as an example. My question is, how can I input this field as a numeric when a character field defines the value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read through all the standard SAS informat pages for numeric data and haven't found anything that will fit my situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 19:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-data-informat-with-character-data-kilobytes-2601k/m-p/110767#M30721</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2012-07-18T19:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric data informat with character data (kilobytes= 2601k)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-data-informat-with-character-data-kilobytes-2601k/m-p/110768#M30722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you show us an example of the data and an example of what you want the output to look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 19:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-data-informat-with-character-data-kilobytes-2601k/m-p/110768#M30722</guid>
      <dc:creator>robby_beum</dc:creator>
      <dc:date>2012-07-18T19:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric data informat with character data (kilobytes= 2601k)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-data-informat-with-character-data-kilobytes-2601k/m-p/110769#M30723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, the field is 6 bytes long and here is an excerpt:&lt;/P&gt;&lt;P&gt;477273&lt;/P&gt;&lt;P&gt;477273&lt;/P&gt;&lt;P&gt;475727&lt;/P&gt;&lt;P&gt;475727&lt;/P&gt;&lt;P&gt;475727&lt;/P&gt;&lt;P&gt;475727&lt;/P&gt;&lt;P&gt;475727&lt;/P&gt;&lt;P&gt; 1001k&lt;/P&gt;&lt;P&gt; 1001k&lt;/P&gt;&lt;P&gt; 1001k&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;998450&lt;/P&gt;&lt;P&gt;I really don't care what output looks like, as long as it is in "a" correct format. I need to summarize this data and the input format needs to be big enough to hold petabyte/terabyte size fields? I'm not sure I am stating that correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 20:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-data-informat-with-character-data-kilobytes-2601k/m-p/110769#M30723</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2012-07-18T20:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric data informat with character data (kilobytes= 2601k)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-data-informat-with-character-data-kilobytes-2601k/m-p/110770#M30724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this may do the trick. I am assuming that K represents thousands so that means any number with a K can only be in whole thousands. If the K represents computer storage bytes then change the "1000" to "1024"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; try;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; column &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt;$6.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; indexc(column,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'k'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; column = translate(column,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'k'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; number = input(column, &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;6.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;) * &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; number = input(column, &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;6.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; column = number = ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 10pt;"&gt;477273&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 10pt;"&gt;1001k&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 20:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-data-informat-with-character-data-kilobytes-2601k/m-p/110770#M30724</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2012-07-18T20:44:23Z</dc:date>
    </item>
  </channel>
</rss>

