<?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>Thema "Re: numerische Variable in drei Spalten verteilen" in CoDe SAS German</title>
    <link>https://communities.sas.com/t5/CoDe-SAS-German/numerische-Variable-in-drei-Spalten-verteilen/m-p/587788#M2600</link>
    <description>&lt;P&gt;Sollen die drei neuen Variablen auch numerisch sein?&lt;/P&gt;
&lt;P&gt;Vielleicht so:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data neu;
  set alt;

  Spalte1 = input(substr(cat(NumVar), 1, 3), 3.);
  ....
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Sep 2019 11:29:19 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-09-11T11:29:19Z</dc:date>
    <item>
      <title>numerische Variable in drei Spalten verteilen</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/numerische-Variable-in-drei-Spalten-verteilen/m-p/587785#M2599</link>
      <description>&lt;P&gt;Hallo zusammen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ich habe eine Spalte mit numerischen Variablen (immer 12 stellig). Diese sollen in 3 Spalten verteilt werden. Die ersten 3 Stellen in Spalte 1, die nächsten 7 Stellen in Spalte 2 und die letzten 2 Stellen in Spalte 3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;z.B.&lt;/P&gt;
&lt;P&gt;123456789066&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Spalte 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Spalte 2&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; Spalte 3&lt;/P&gt;
&lt;P&gt;123&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; 4567890&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 66&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vielen Dank für Euren Support!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Viele Grüße&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 11:26:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/numerische-Variable-in-drei-Spalten-verteilen/m-p/587785#M2599</guid>
      <dc:creator>Katrin1606</dc:creator>
      <dc:date>2019-09-11T11:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: numerische Variable in drei Spalten verteilen</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/numerische-Variable-in-drei-Spalten-verteilen/m-p/587788#M2600</link>
      <description>&lt;P&gt;Sollen die drei neuen Variablen auch numerisch sein?&lt;/P&gt;
&lt;P&gt;Vielleicht so:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data neu;
  set alt;

  Spalte1 = input(substr(cat(NumVar), 1, 3), 3.);
  ....
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Sep 2019 11:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/numerische-Variable-in-drei-Spalten-verteilen/m-p/587788#M2600</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-09-11T11:29:19Z</dc:date>
    </item>
    <item>
      <title>Betreff: numerische Variable in drei Spalten verteilen</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/numerische-Variable-in-drei-Spalten-verteilen/m-p/587796#M2601</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    x=123456789066;
    Spalte1=int(x/1e9);
    Spalte2=mod(int(x/100), 1e7);
    Spalte3=mod(x,1e3);

    put Spalte1= / Spalte2= / Spalte3=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Spalte1=123
Spalte2=4567890
Spalte3=66&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Sep 2019 11:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/numerische-Variable-in-drei-Spalten-verteilen/m-p/587796#M2601</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-11T11:35:22Z</dc:date>
    </item>
  </channel>
</rss>

