<?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: Datetime Format abfragen" in CoDe SAS German</title>
    <link>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242923#M1875</link>
    <description>&lt;P&gt;wie blöd kann man sein .... Vielen Dank allen&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2016 13:43:43 GMT</pubDate>
    <dc:creator>Fay123</dc:creator>
    <dc:date>2016-01-12T13:43:43Z</dc:date>
    <item>
      <title>Datetime Format abfragen</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242919#M1871</link>
      <description>&lt;P&gt;Ich sitze jetzt schon seit Stunden erfolglos vor dem Problem ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ich habe Datumsfelder, die als Datetime vorliegen und möchte jetzt ein Datum abfragen. Mein Versuch mit "where Stichtag = 31AUG2015:00:00:00" war nicht wirklich erfolgreich und eigentlich würde ich auch lieber nur mit 31Aug15 abfragen. Funktioniert das irgendwie?&lt;/P&gt;
&lt;P&gt;Dankeschön im voraus!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242919#M1871</guid>
      <dc:creator>Fay123</dc:creator>
      <dc:date>2016-01-12T13:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime Format abfragen</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242920#M1872</link>
      <description>Wie wär´s denn mit &lt;BR /&gt;  wher Stichtag = "31AUG2015"d&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;Also String mit Datumsmarkierung.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:35:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242920#M1872</guid>
      <dc:creator>CHoens</dc:creator>
      <dc:date>2016-01-12T13:35:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: Datetime Format abfragen</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242921#M1873</link>
      <description>&lt;P&gt;Vielleicht funktioniert so was wie:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;where Stichtag like '31AUG15%';&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS liegt das Datum aber im Kern als Zahl, berechnet ab dem 01.01.1960, vor. Vielleicht dann besser umrechnen bzw. formatieren.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242921#M1873</guid>
      <dc:creator>Sven_</dc:creator>
      <dc:date>2016-01-12T13:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime Format abfragen</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242922#M1874</link>
      <description>&lt;P&gt;&lt;SPAN&gt;where datepart(Stichtag) = "31AUG2015"d&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Viele Grüße&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Marius&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242922#M1874</guid>
      <dc:creator>mariusg</dc:creator>
      <dc:date>2016-01-12T13:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime Format abfragen</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242923#M1875</link>
      <description>&lt;P&gt;wie blöd kann man sein .... Vielen Dank allen&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242923#M1875</guid>
      <dc:creator>Fay123</dc:creator>
      <dc:date>2016-01-12T13:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime Format abfragen</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242925#M1876</link>
      <description>&lt;P&gt;Prima, schon gelöst.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Für eventuelle spätere Leser: Die entscheidende Frage ist, ob es sich bei den "Datumsfeldern" um numerische Variablen handelt, die SAS-Datetime-Werte enthalten (Zahlen wie etwa&amp;nbsp;1768228898), oder um Character-Variablen, in denen Strings der Form "&lt;SPAN&gt;31AUG2015:00:00:00" gespeichert sind. Auf erstere lässt sich die DATEPART-Funktion anwenden,&amp;nbsp;um das Datum (als SAS-Datumswert) zu extrahieren,&amp;nbsp;wie von &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31446"&gt;@mariusg﻿&lt;/a&gt;&amp;nbsp;vorgeschlagen (auch&amp;nbsp;'31Aug15'd wäre auf der rechten Seite zulässig), für letztere eignen sich dagegen nur Character-Funktionen bzw. -Operatoren wie LIKE (Vorschlag von&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51465"&gt;@Sven_﻿&lt;/a&gt;)&amp;nbsp;oder auch =:, wobei dann auf&amp;nbsp;&lt;/SPAN&gt;Feinheiten wie Groß-/Kleinschreibung oder 2- bzw. 4-stellige Jahresangabe zu achten ist. Alternativ lassen sich die beiden Arten von Werten per PUT- bzw. INPUT-Funktion (mit Datetime-Format bzw. -Informat) ineinander umrechnen und dann entsprechend anders abfragen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Datetime-Format-abfragen/m-p/242925#M1876</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-12T14:00:09Z</dc:date>
    </item>
  </channel>
</rss>

