<?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: Read European numeric data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471494#M120778</link>
    <description>&lt;P&gt;The COMMAX format will reverse the role of the comma and decimal point in numeric values.&lt;/P&gt;
&lt;PRE&gt;data example;
   informat x commax10.3;
   input x;
   format x best10.;
datalines;
29,048 
45,195 
29,048 
113,36 
114,29 
113,98 
;
run;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Jun 2018 19:37:26 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-06-19T19:37:26Z</dc:date>
    <item>
      <title>Read European numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471489#M120775</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS and trying to read a data set with European format.&amp;nbsp; Comma means the decimal point in this data set.&amp;nbsp; Single space is the delimiter. Each value represents one input variable.&amp;nbsp; &amp;nbsp; I tried to use euro10. read the following data and got nothing.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the example of my data set.&lt;/P&gt;&lt;P&gt;29,048 45,195 29,048 113,36 114,29 113,98 29,693 29,805 29,765 33,698 33,813 33,775 43,4 43,8 43,53 32,409 32,409 32,409 22,933 22,933 22,933 1,02 1,04 1,03 30,999 30,999 30,999 161,907 162,804 162,209 6,947 7,247 7,067 8,019 8,466 8,183 7,76 7,951 7,814 9,099 9,496 9,154&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Margaret&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 19:16:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471489#M120775</guid>
      <dc:creator>Learningforfun</dc:creator>
      <dc:date>2018-06-19T19:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read European numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471494#M120778</link>
      <description>&lt;P&gt;The COMMAX format will reverse the role of the comma and decimal point in numeric values.&lt;/P&gt;
&lt;PRE&gt;data example;
   informat x commax10.3;
   input x;
   format x best10.;
datalines;
29,048 
45,195 
29,048 
113,36 
114,29 
113,98 
;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jun 2018 19:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471494#M120778</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-19T19:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read European numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471495#M120779</link>
      <description>&lt;P&gt;Use the commax informat.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 19:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471495#M120779</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-19T19:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read European numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471502#M120783</link>
      <description>&lt;P&gt;Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion on commax10.3.&amp;nbsp; It worked.&amp;nbsp; Can you show me how to separate those values because each value represents one variable.&amp;nbsp; I tried to use dsd and truncover to separate these values, and didn't get anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;29,048 45,195 29,048 113,36 114,29 113,98 29,693 29,805 29,765 33,698 33,813 33,775 43,4 43,8 43,53 32,409 32,409 32,409 22,933 22,933 22,933 1,02 1,04 1,03 30,999 30,999 30,999 161,907 162,804 162,209 6,947 7,247 7,067 8,019 8,466 8,183 7,76 7,951 7,814 9,099 9,496 9,154&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Margaret&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 19:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471502#M120783</guid>
      <dc:creator>Learningforfun</dc:creator>
      <dc:date>2018-06-19T19:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read European numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471603#M120809</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216539"&gt;@Learningforfun&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the suggestion on commax10.3.&amp;nbsp; It worked.&amp;nbsp; Can you show me how to separate those values because each value represents one variable.&amp;nbsp; I tried to use dsd and truncover to separate these values, and didn't get anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;29,048 45,195 29,048 113,36 114,29 113,98 29,693 29,805 29,765 33,698 33,813 33,775 43,4 43,8 43,53 32,409 32,409 32,409 22,933 22,933 22,933 1,02 1,04 1,03 30,999 30,999 30,999 161,907 162,804 162,209 6,947 7,247 7,067 8,019 8,466 8,183 7,76 7,951 7,814 9,099 9,496 9,154&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Margaret&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For that I would need to see your code, and at least one line of the infile (post as attachment, or use the {i} button).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 05:07:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471603#M120809</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-20T05:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Read European numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471730#M120863</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216539"&gt;@Learningforfun&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the suggestion on commax10.3.&amp;nbsp; It worked.&amp;nbsp; Can you show me how to separate those values because each value represents one variable.&amp;nbsp; I tried to use dsd and truncover to separate these values, and didn't get anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;29,048 45,195 29,048 113,36 114,29 113,98 29,693 29,805 29,765 33,698 33,813 33,775 43,4 43,8 43,53 32,409 32,409 32,409 22,933 22,933 22,933 1,02 1,04 1,03 30,999 30,999 30,999 161,907 162,804 162,209 6,947 7,247 7,067 8,019 8,466 8,183 7,76 7,951 7,814 9,099 9,496 9,154&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Margaret&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you mean these are all supposed to be read into a single variable with each value a separate observation then this might get you started:&lt;/P&gt;
&lt;PRE&gt;data example;
   informat x commax10.3;
   input x @@;
datalines;
29,048 45,195 29,048 113,36 114,29 113,98 29,693 29,805 29,765 33,698 33,813 33,775 43,4 43,8 43,53 32,409 32,409 32,409 22,933 22,933 22,933 1,02 1,04 1,03 30,999 30,999 30,999 161,907 162,804 162,209 6,947 7,247 
;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/141062"&gt;@the&lt;/a&gt; @@ at the end of an input line means to stay on the same record until you reach the end of the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 15:25:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471730#M120863</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-20T15:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Read European numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471788#M120875</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to import the attached data by using the following code.&amp;nbsp; I was able to get Zeit (time), but not the remaining variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;&lt;P&gt;Margaret&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data testdata;&lt;BR /&gt;infile 'C:........' dsd;&lt;BR /&gt;informat zeit time8.2 a1-a60 commax10.3;&lt;BR /&gt;input zeit a1-a60;&lt;BR /&gt;format zeit time8.2 a1-a60 best10.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 16:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471788#M120875</guid>
      <dc:creator>Learningforfun</dc:creator>
      <dc:date>2018-06-20T16:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Read European numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471858#M120897</link>
      <description>&lt;P&gt;Add&lt;/P&gt;
&lt;PRE&gt;dlm=';'&lt;/PRE&gt;
&lt;P&gt;to your infile statement.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 19:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-European-numeric-data/m-p/471858#M120897</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-20T19:36:34Z</dc:date>
    </item>
  </channel>
</rss>

