<?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: Converting data format on large data set in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Converting-data-format-on-large-data-set/m-p/558996#M10217</link>
    <description>&lt;P&gt;Are you in the same class the poster for this thread: &lt;A href="https://communities.sas.com/t5/SAS-Procedures/Can-I-change-formats-of-several-variabels-in-one-procedure/m-p/558893" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Can-I-change-formats-of-several-variabels-in-one-procedure/m-p/558893&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; ask because while this a moderately common question seldom do we get two people use phrasing of "changing format" when they actual task is "changing values".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Learning note: Format is a very specific concept in SAS related to the rules for displaying values. Look at online help for the FORMAT statement and PROC FORMAT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing a SAS Format, which is a variable property, can be done quite easily with a Format statement which has syntax of&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format &amp;lt;variable list&amp;gt; formatname. ; If the variables are amenable to nice lists these aren't even very long:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format var1-var100 F8.1 ; would assign a format to display all the numeric variables in the named range as 8 characters with one decimal position.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing that many variables VALUES usually means that the data was read incorrectly to begin with. Go back to the step the data was read and make sure the data was read in as needed. A common mistake is relying on Proc Import which guesses from examining a few rows of data and unless the first 20 rows contain the longest values then things often are not right. With text files use the GUESSINGROWS option to examine more rows to get better guesses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 15:04:51 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-05-15T15:04:51Z</dc:date>
    <item>
      <title>Converting data format on large data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-data-format-on-large-data-set/m-p/558880#M10195</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I convert large sets of data from character to numeric (for example), in a not too timeconsuming way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Datanoob.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 12:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-data-format-on-large-data-set/m-p/558880#M10195</guid>
      <dc:creator>Posterne</dc:creator>
      <dc:date>2019-05-15T12:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Converting data format on large data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-data-format-on-large-data-set/m-p/558898#M10199</link>
      <description>&lt;P&gt;What does your data look like?&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 13:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-data-format-on-large-data-set/m-p/558898#M10199</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-15T13:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting data format on large data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-data-format-on-large-data-set/m-p/558996#M10217</link>
      <description>&lt;P&gt;Are you in the same class the poster for this thread: &lt;A href="https://communities.sas.com/t5/SAS-Procedures/Can-I-change-formats-of-several-variabels-in-one-procedure/m-p/558893" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Can-I-change-formats-of-several-variabels-in-one-procedure/m-p/558893&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; ask because while this a moderately common question seldom do we get two people use phrasing of "changing format" when they actual task is "changing values".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Learning note: Format is a very specific concept in SAS related to the rules for displaying values. Look at online help for the FORMAT statement and PROC FORMAT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing a SAS Format, which is a variable property, can be done quite easily with a Format statement which has syntax of&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format &amp;lt;variable list&amp;gt; formatname. ; If the variables are amenable to nice lists these aren't even very long:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format var1-var100 F8.1 ; would assign a format to display all the numeric variables in the named range as 8 characters with one decimal position.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing that many variables VALUES usually means that the data was read incorrectly to begin with. Go back to the step the data was read and make sure the data was read in as needed. A common mistake is relying on Proc Import which guesses from examining a few rows of data and unless the first 20 rows contain the longest values then things often are not right. With text files use the GUESSINGROWS option to examine more rows to get better guesses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 15:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-data-format-on-large-data-set/m-p/558996#M10217</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-15T15:04:51Z</dc:date>
    </item>
  </channel>
</rss>

