<?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: Code Kata: FizzBuzz" in CoDe SAS German</title>
    <link>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210732#M131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zuletzt habe ich das Ganze auch noch als DataStep 2 Programm implementiert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;proc&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;ds2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; FizzBuzz(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;overwrite&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;=yes);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;dcl&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;int&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; number;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;dcl&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;char&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;8&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) formatted;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;method&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; fizzBuzz(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;int&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; zahl) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;returns&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;varchar&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;8&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(zahl,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;3&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;*&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;5&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; return(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: purple; background: white;"&gt;'FizzBuzz'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(zahl,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;3&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; return(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: purple; background: white;"&gt;'Fizz'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(zahl,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;5&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; return(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: purple; background: white;"&gt;'Buzz'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;return&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(strip(put(zahl, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;8.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;method&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;init&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;do&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; number = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;to&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;100&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formatted = fizzBuzz(number);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;output&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;enddata&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Times New Roman',serif;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Times New Roman',serif;"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Das Programmieren mit DS2 macht allerdings unter SAS 9.4 M2 wirklich keinen Spaß. Man muss zwar etwas umdenken im Vergleich zum klassischen Datastep, aber das ist nicht das Problem.&lt;/P&gt;&lt;P&gt;Vielmehr vermisse ich Möglichkeiten zum Debugging meines DS2-Codes. An vielen Stellen erhält der Anwender noch nicht einmal eine Fehlermeldung an welcher Stelle ein Problem auftritt. Stattdessen gibt es nur einen generischen Fehler:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11293_pastedImage_1.png" style="width: 754px; height: 167px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Das Programm war jetzt noch sehr überschaubar. Wie aufwändig die Fehlersuche bei größeren DS2-Codeblöcken wird, will ich mir an dieser Stelle gar nicht erst vorstellen...&lt;/P&gt;&lt;P&gt;Hoffentlich bessert SAS an dieser Stelle mit M3 und Folgeversionen noch nach!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 08:49:43 GMT</pubDate>
    <dc:creator>AndreasMenrath</dc:creator>
    <dc:date>2015-07-31T08:49:43Z</dc:date>
    <item>
      <title>Code Kata: FizzBuzz</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210727#M126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo zusammen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;da sich die letzte &lt;A href="https://de.wikipedia.org/wiki/Kata_%28Programmierung%29"&gt;Code Kata&lt;/A&gt; großer Beliebtheit erfreut hat und ich auch außerhalb des Forums positives Feedback bekommen habe, möchte ich für die kommende Woche eine neue Übungsaufgabe stellen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hierbei handelt es sich sozusagen um die Mutter aller Code Katas: &lt;A href="https://codedojos.wordpress.com/kata-ubersicht/kata-fizzbuzz/"&gt;&lt;STRONG&gt;FizzBuzz&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hier nocheinmal die Aufgabenstellung aus der verlinkten Seite:&lt;/P&gt;&lt;P&gt;Schreibe ein Programm, dass dir die Zahlen von 1 bis 100 ausgibt –&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ist die Zahl durch 3 teilbar, gib das Wort Fizz anstatt der Zahl aus&lt;/LI&gt;&lt;LI&gt;ist die Zahl durch 5 teilbar, so gib das Wort Buzz anstatt der Zahl aus&lt;/LI&gt;&lt;LI&gt;ist die sowohl durch 3 als auch durch 5 teilbar, so gib das Wort FizzBuzz aus.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An dieser Stelle spannender gestaltet sich die Frage, wie man eine solche Code Kata in SAS modelliert und an die Aufgabenstellung herantritt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eine Möglichkeit besteht darin sich die Ergebnisse in ein Dataset berechnen zu lassen. Um die Verarbeitungslogik zu prüfen, könnte man anschließend die Daten per PROC COMPARE mit den erwarteten Daten vergleichen. Die Vergleichsdaten können Sie sich per Skript erzeugen. Die Kata könnte man daher versuchen testgetrieben zu entwickeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neben der reinen Berechnung kann man allerdings auch seine Fähigkeiten testen, um die Berechnungsfunktionalität möglichst wiederverwendbar in unterschiedlichen SAS Techniken bereitzustellen.&lt;/P&gt;&lt;P&gt;Mir kommen hierzu spontan drei Lösungsansätze in den Sinn:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Stelle die Berechnungslogik als &lt;STRONG&gt;FCMP Funktion&lt;/STRONG&gt; bereit&lt;/LI&gt;&lt;LI&gt;Stelle die Berechnungslogik als &lt;STRONG&gt;SAS Format&lt;/STRONG&gt; bereit&lt;/LI&gt;&lt;LI&gt;Stelle die Berechnungslogik als&lt;STRONG&gt; reine Makrolösung&lt;/STRONG&gt; bereit&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zu 3. stelle ich mir das Ergebnis so vor, dass man den Rückgabewert des Makros direkt verwenden kann, als z.B. sollte&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: navy; background: white none repeat scroll 0% 0%; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white none repeat scroll 0% 0%;"&gt; ausgabe;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white none repeat scroll 0% 0%;"&gt;&amp;nbsp; result = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white none repeat scroll 0% 0%;"&gt;"%FizzBuzz(10)"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white none repeat scroll 0% 0%;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: navy; background: white none repeat scroll 0% 0%; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white none repeat scroll 0% 0%;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;direkt vom Makroprozessor in result = "Buzz"; aufgelöst werden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alle 3 Varianten habe ich bereits implementiert und werde an dieser Stelle kommenden Freitag meine Lösungen vorstellen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Den Schwierigkeitsgrad dieser recht simplen Aufgabe kann jeder für sich selbst bestimmen.&lt;/P&gt;&lt;P&gt;Am einfachsten ist natürlich eine Lösung direkt innerhalb eines Datasteps, die nur die Daten erzeugt.&lt;/P&gt;&lt;P&gt;Schwieriger wird die Makrolösung.&lt;/P&gt;&lt;P&gt;Wer besonders viel auf seine Programmierfähigkeiten hält, versucht sich an der FCMP- und Format-Lösung.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bis dahin viel Vergnügen beim Tüfteln und selbst ausprobieren auf welche Art und Weise sich das Problem in SAS lösen lässt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Viele Grüße,&lt;/P&gt;&lt;P&gt;Andreas Menrath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 14:19:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210727#M126</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-07-24T14:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Code Kata: FizzBuzz</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210728#M127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mit diesem Skript lassen sich die Vergleichsdaten erzeugen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data comp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length expected_result $8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input expected_result $;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;11&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;13&lt;/P&gt;&lt;P&gt;14&lt;/P&gt;&lt;P&gt;FizzBuzz&lt;/P&gt;&lt;P&gt;16&lt;/P&gt;&lt;P&gt;17&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;19&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;23&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;26&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;28&lt;/P&gt;&lt;P&gt;29&lt;/P&gt;&lt;P&gt;FizzBuzz&lt;/P&gt;&lt;P&gt;31&lt;/P&gt;&lt;P&gt;32&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;34&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;37&lt;/P&gt;&lt;P&gt;38&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;41&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;43&lt;/P&gt;&lt;P&gt;44&lt;/P&gt;&lt;P&gt;FizzBuzz&lt;/P&gt;&lt;P&gt;46&lt;/P&gt;&lt;P&gt;47&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;49&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;52&lt;/P&gt;&lt;P&gt;53&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;56&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;58&lt;/P&gt;&lt;P&gt;59&lt;/P&gt;&lt;P&gt;FizzBuzz&lt;/P&gt;&lt;P&gt;61&lt;/P&gt;&lt;P&gt;62&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;64&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;67&lt;/P&gt;&lt;P&gt;68&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;71&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;73&lt;/P&gt;&lt;P&gt;74&lt;/P&gt;&lt;P&gt;FizzBuzz&lt;/P&gt;&lt;P&gt;76&lt;/P&gt;&lt;P&gt;77&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;79&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;82&lt;/P&gt;&lt;P&gt;83&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;86&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;88&lt;/P&gt;&lt;P&gt;89&lt;/P&gt;&lt;P&gt;FizzBuzz&lt;/P&gt;&lt;P&gt;91&lt;/P&gt;&lt;P&gt;92&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;94&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;97&lt;/P&gt;&lt;P&gt;98&lt;/P&gt;&lt;P&gt;Fizz&lt;/P&gt;&lt;P&gt;Buzz&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 14:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210728#M127</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-07-24T14:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Code Kata: FizzBuzz</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210729#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tolle Idee!&lt;/P&gt;&lt;P&gt;Endlich mal eine Gelgenheit, PROC FCMP auszuprobieren...&lt;/P&gt;&lt;P&gt;Letztendlich habe ich es auch mit einem Format gelöst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Schönen Abend! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;fcmp&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;outlib&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;=WORK.FUNKTIONEN.FIZZBUZZ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; FIZZBUZZ(I) $;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; DREI = mod(I,&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; FUENF = mod(I,&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;(DREI eq &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; and FUENF eq &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;) return(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;"FizzBuzz"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;(DREI eq &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; and FUENF ne &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;) return(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;"Fizz "&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;(DREI ne &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; and FUENF eq &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;) return(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;"Buzz "&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;otherwise&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; return(put(I,&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;8.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;endsub&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;options&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;cmplib&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;=(work.FUNKTIONEN);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;format&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; FIZZBUZZ &lt;/SPAN&gt; &lt;/P&gt;&lt;P style="font-weight: normal;"&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;other=[FIZZBUZZ()];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: normal;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; FIZZBUZZ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;attrib&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; i &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;8.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;attrib&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; j &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;FIZZBUZZ.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; i=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: normal;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j = i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;print&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;noobs&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace; font-weight: normal;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 17:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210729#M128</guid>
      <dc:creator>CKothenschulte</dc:creator>
      <dc:date>2015-07-27T17:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Code Kata: FizzBuzz</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210730#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo zusammen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ich möchte nun meine Lösungen an dieser Stelle vorstellen.&lt;/P&gt;&lt;P&gt;Die FCMP und Format-Lösung ist nahezu identisch zur Lösung von Hr. Kothenschulte:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;proc&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;fcmp&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;outlib&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;=work.functions.codekata;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; fizzbuzz(zahl) $;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(zahl,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Times New Roman',serif;"&gt;3&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;*&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Times New Roman',serif;"&gt;5&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Times New Roman',serif;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; return("FizzBuzz");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(zahl,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;3&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; return("Fizz");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(zahl,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;5&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; return("Buzz");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;return&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(strip(put(zahl, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;8.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;endsub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;options&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;cmplib&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;=work.functions;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;proc&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;format&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;value&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; fizzbuzz other=[fizzbuzz()];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; fbdata;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;attrib&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; fbvar&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;length&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;8&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;fizzbuzz.&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;label&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;="numeric value with cool custom FizzBuzz format" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;do&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; fbvar=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;to&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;100&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;output&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Times New Roman',serif;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Durch das Format auf den Daten bekommt man auch eine schöne Ausgabe z.B. im Enterprise Guide:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11292_pastedImage_0.png" style="width: 333px; height: 603px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 08:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210730#M129</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-07-31T08:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code Kata: FizzBuzz</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210731#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Die Makro-Lösung war auch schnell erstellt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;%macro&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; FizzBuzz(num);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%local&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; result;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(&amp;amp;num,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;3&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;*&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;5&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;)) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%then&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; result = FizzBuzz;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%else&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(&amp;amp;num,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;3&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;)) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%then&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; result = Fizz;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%else&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(&amp;amp;num,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;5&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;)) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%then&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; result = Buzz;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%else&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; result = &amp;amp;num;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;%&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: green; background: white;"&gt;* return result;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Times New Roman',serif;"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; FizzBuzz;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Man kann das Makro nun vielseitig einsetzbar in unterschiedlichen Szenarien einsetzen, z.B. :&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; result 5=%FizzBuzz(5);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; result 3=%FizzBuzz(3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; result 15=%FizzBuzz(15);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; result 2=%FizzBuzz(2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; ausgabe;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&amp;nbsp; result = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: purple; background: white;"&gt;"%FizzBuzz(10)"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;%macro&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; print();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; i=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%to&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;100&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; %FizzBuzz(&amp;amp;i);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;%mend&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; print;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;%&lt;STRONG&gt;&lt;EM&gt;print&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ich persönlich finde jedoch die FCMP Lösung besser und eleganter als die Makro-Umsetzung. &lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 08:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210731#M130</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-07-31T08:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Code Kata: FizzBuzz</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210732#M131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zuletzt habe ich das Ganze auch noch als DataStep 2 Programm implementiert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;proc&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: navy; background: white;"&gt;ds2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; FizzBuzz(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;overwrite&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;=yes);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;dcl&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;int&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; number;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;dcl&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;char&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;8&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) formatted;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;method&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; fizzBuzz(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;int&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; zahl) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;returns&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;varchar&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;8&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(zahl,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;3&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;*&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;5&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; return(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: purple; background: white;"&gt;'FizzBuzz'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(zahl,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;3&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; return(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: purple; background: white;"&gt;'Fizz'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(mod(zahl,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;5&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; return(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: purple; background: white;"&gt;'Buzz'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;return&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;(strip(put(zahl, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;8.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;method&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;init&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;do&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt; number = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;to&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: teal; background: white;"&gt;100&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formatted = fizzBuzz(number);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;output&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: blue; background: white;"&gt;enddata&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Times New Roman',serif;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Times New Roman',serif;"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Das Programmieren mit DS2 macht allerdings unter SAS 9.4 M2 wirklich keinen Spaß. Man muss zwar etwas umdenken im Vergleich zum klassischen Datastep, aber das ist nicht das Problem.&lt;/P&gt;&lt;P&gt;Vielmehr vermisse ich Möglichkeiten zum Debugging meines DS2-Codes. An vielen Stellen erhält der Anwender noch nicht einmal eine Fehlermeldung an welcher Stelle ein Problem auftritt. Stattdessen gibt es nur einen generischen Fehler:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman',serif; color: black; background: white;"&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11293_pastedImage_1.png" style="width: 754px; height: 167px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Das Programm war jetzt noch sehr überschaubar. Wie aufwändig die Fehlersuche bei größeren DS2-Codeblöcken wird, will ich mir an dieser Stelle gar nicht erst vorstellen...&lt;/P&gt;&lt;P&gt;Hoffentlich bessert SAS an dieser Stelle mit M3 und Folgeversionen noch nach!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 08:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Code-Kata-FizzBuzz/m-p/210732#M131</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-07-31T08:49:43Z</dc:date>
    </item>
  </channel>
</rss>

