<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: optimize the name of export files in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631916#M21013</link>
    <description>&lt;P&gt;Hello Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the names of the months in German. I don't know if there's an option to set the function on a particular language?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was originally the reason why I wrote the bloc with all names of the months.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2020 15:27:58 GMT</pubDate>
    <dc:creator>PierreYvesILY</dc:creator>
    <dc:date>2020-03-13T15:27:58Z</dc:date>
    <item>
      <title>optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631900#M21007</link>
      <description>&lt;P&gt;dear SAS experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the following code to name datasets and afterwards export files. I encounter the following issue: the name end with a number of blanks (different according to the text of the name) between the name and the .xlsx for instance, like: NAME_variable&amp;nbsp;&amp;nbsp; .xlsx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need names to be:&lt;/P&gt;&lt;P&gt;- MONTH_YEAR (if the parameter Spanne is set at 1)&lt;/P&gt;&lt;P&gt;- FIRSTMONTH_ENDMONTH_YEAR &amp;nbsp;(if the parameter Spanne is set&amp;nbsp;from 2 to 12).&lt;/P&gt;&lt;P&gt;Spanne = number of month reversely to a date (Auswertungsdatum) See below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is highly under optimized (I'm quite new to SAS) and I guess there is a way to improve this a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help and send me advide to use a more clever structure of the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* macro-code fuer den Auswertungstag */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &lt;STRONG&gt;&lt;I&gt;auswert&lt;/I&gt;&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%global&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Auswertungstag;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Auswertungstag=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(today());&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; auswert;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;auswert&lt;/I&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Auswertungstag.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Auswertungstag = '01JAN2021'D; &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Zur Nutzung: den Stern löschen und das ausgewählte Datum anpassen*/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Auswertungstag.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Spanne=12; &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Hier die Anzahl der gewünschten Monate rückwirkend ab den Vormonat erfassen */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Spanne.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Zeitraum_aus_ab = '01APR2019'D;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Zeitraum_aus_bis = '15APR2019'D;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; NKF_EfDtm = '15SEP2019'D; &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* NKFlag_Einfuehrungsdatum: 16 September 2019 */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;NKF_EfDtm.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Zeitraum_aus_ab.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Zeitraum_aus_bis.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Monat(Auswertungstag);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Monat=month(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Auswertungstag.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;if Monat = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; then Monat = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Monat;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr1(Auswertungstag);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Jahr1=(year(&amp;amp;Auswertungstag.)); */&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Jahr1=(year(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Auswertungstag.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;); &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* nur für Dezember nutzen */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr2(Auswertungstag);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Jahr2=(year(&amp;amp;Auswertungstag.)-1); */&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Jahr2=(year(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Auswertungstag.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;); &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* nur für Dezember nutzen */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%global&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Monat Jahr1 Jahr2 Monat1 Monat2 Jahr11 Jahr12 MonatBis MonatAb Spanne Dashboard_Name &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dashboard_Name1 Dashboard_Name2 Dashboard_Name3;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; zeitraum_Var; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Auswertungstag=&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Auswertungstag.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Spanne=&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Spanne.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Auswertungstag &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DDMMYY10.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr1 &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;best4.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr2 &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;best4.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Monat &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;best2.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; MonatBis &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;best2.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; MonatAb &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;best2.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Spanne &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;best2.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Dashboard_Name &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$31.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Dashboard_Name1 &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$31.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Dashboard_Name2 &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$31.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Dashboard_Name3 &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$31.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr11 $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr12 $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr1 &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr2 &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; Monat1 $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; Monat2 $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;Jahr1&lt;/I&gt;&lt;/STRONG&gt;(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Auswertungstag.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;Jahr2&lt;/I&gt;&lt;/STRONG&gt;(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Auswertungstag.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;Monat&lt;/I&gt;&lt;/STRONG&gt;(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Auswertungstag.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Jahr11=trim(substr(Jahr1,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Jahr12=trim(substr(Jahr2,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (Monat);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Januar'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Februar'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'März'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'April'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Mai'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;6&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Juni'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;7&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Juli'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'August'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'September'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Oktober'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;11&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'November'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat1 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Dezember'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;otherwise&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Monat2=trim(Monat1);&lt;/P&gt;&lt;P&gt;MonatBis=Monat;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;MonatAb=Monat-&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Spanne.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;+&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (MonatAb);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Januar'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Februar'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'März'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'April'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Mai'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;6&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Juni'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;7&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Juli'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'August'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'September'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Oktober'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;11&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'November'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) Monat3 = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Dezember'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;otherwise&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Jahrdisplay = put(Jahr1,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Spanne = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Dashboard_Name1 = trim(Monat2)||&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'_'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||trim(Jahrdisplay);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Dashboard_Name1 = trim(Monat3)||&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'_bis_'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||trim(Monat2)||&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'_'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||trim(Jahrdisplay);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dashboard_Name=trim(Dashboard_Name1);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Monat'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, Monat);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Monat1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, Monat1);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Monat2'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, Monat2);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Jahr1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, Jahr1);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Jahr2'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, Jahr2);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Jahr11'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, Jahr11);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Jahr12'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, Jahr12);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MonatAb'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, MonatAb);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MonatBis'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, MonatBis);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Dashboard_Name'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, Dashboard_Name);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* zu Kontrolle in das LOG schreiben */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Monat.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Monat1.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Monat2.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;MonatAb.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;MonatBis.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Jahr1.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Jahr2.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Jahr11.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Jahr12.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Dashboard_Name.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631900#M21007</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-03-13T15:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631901#M21008</link>
      <description>&lt;P&gt;I haven't really tried to follow your code all the way through, but you don't have any spot in your code where .xlsx appears. So where is the file name being created?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also am not seeing any need for macros, as all of your calculations can be done in a DATA step.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631901#M21008</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-13T15:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631903#M21009</link>
      <description>&lt;P&gt;Replace your CALL SYMPUT with CALL SYMPUTX() &lt;BR /&gt;&lt;BR /&gt;SYMPUTX() removes any trailing spaces automatically and is what you want. It has some other options but they're not relevant to your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: And use CATT() to concatenate the components not || symbol. The CATT() will automatically trim extra spaces as well. If you're adding a delimiter between the terms, use CATX() instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631903#M21009</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-13T15:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631907#M21010</link>
      <description>&lt;P&gt;Hi Paige,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the files .xlsx are created at the bottom of the programs where I use the bloc of code I mentioned (let's name it: name_DIY bloc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may use some of the macrovariables of this bloc in the text of the program also:&lt;/P&gt;&lt;P&gt;&amp;amp;Auswertungstag.&lt;/P&gt;&lt;P&gt;&amp;amp;Spanne.&lt;/P&gt;&lt;P&gt;&amp;amp;Zeitraum_aus_ab.&lt;/P&gt;&lt;P&gt;&amp;amp;Zeitraum_aus_bis.&lt;/P&gt;&lt;P&gt;&amp;amp;Monat.;&lt;/P&gt;&lt;P&gt;&amp;amp;Monat1.;&lt;/P&gt;&lt;P&gt;&amp;amp;Monat2.;&lt;/P&gt;&lt;P&gt;&amp;amp;MonatAb.;&lt;/P&gt;&lt;P&gt;&amp;amp;MonatBis.;&lt;/P&gt;&lt;P&gt;&amp;amp;Jahr1.;&lt;/P&gt;&lt;P&gt;&amp;amp;Jahr2.;&lt;/P&gt;&lt;P&gt;&amp;amp;Jahr11.;&lt;/P&gt;&lt;P&gt;&amp;amp;Jahr12.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I write the programs like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- the mentioned name_DIY bloc ; I'll use for instance the name: &lt;FONT color="#800080" face="Courier New" size="3"&gt;&amp;amp;Dashboard_Name.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;- dataset generating code ; the dataset is, for instance: WORK.ORB&lt;/P&gt;&lt;P&gt;- export procedure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Daten nach Windows übertragen */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;EXPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=ORB_Monat_6 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUTFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;PRODUCT_BASEDIR./data/export/ORB_&amp;amp;Dashboard_Name..xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=XLSX &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;REPLACE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SHEET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"ORB"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Transfer nach Windows */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;mglob_secureTrans&lt;/I&gt;&lt;/STRONG&gt;(MODE = PUT&lt;/P&gt;&lt;P&gt;,AUTHKEY = TRANS&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;,UNIXFILE = &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;PRODUCT_BASEDIR.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;/data/export/ORB_&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Dashboard_Name.&lt;STRONG&gt;.x&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;lsx&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;,CIFSFILE = FROM_UNIX\Reports\MUC\ORB_&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Dashboard_Name.&lt;STRONG&gt;.x&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;lsx);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Löschen des BAK- und Excel-Files auf Unix */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;fname=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"tempfile"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rc=filename(fname,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;PRODUCT_BASEDIR./data/export/ORB_&amp;amp;Dashboard_Name..xlsx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rc = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; fexist(fname) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rc=fdelete(fname);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rc=filename(fname);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;fname=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"tempfile"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rc=filename(fname,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;PRODUCT_BASEDIR./data/export/ORB_&amp;amp;Dashboard_Name..xlsx.bak"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rc = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; fexist(fname) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rc=fdelete(fname);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rc=filename(fname);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps to understand my concern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;PY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631907#M21010</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-03-13T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631910#M21011</link>
      <description>There may be functions to map the month number to month names. If you have a SAS date you can use monname format, I'm assuming it'll translate correctly but I could be wrong there.</description>
      <pubDate>Fri, 13 Mar 2020 15:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631910#M21011</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-13T15:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631916#M21013</link>
      <description>&lt;P&gt;Hello Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the names of the months in German. I don't know if there's an option to set the function on a particular language?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was originally the reason why I wrote the bloc with all names of the months.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631916#M21013</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-03-13T15:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631917#M21014</link>
      <description>&lt;P&gt;Use call symputx as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; said&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA=ORB_Monat_6 
OUTFILE= "&amp;amp;PRODUCT_BASEDIR./data/export/ORB_%trim(&amp;amp;Dashboard_Name).xlsx"
DBMS=XLSX REPLACE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But really, you don't need macros here, your macros %JAHR1 %JAHR2 and %MONAT are unnecessary; data step commands work just fine on macro variable &lt;FONT size="3" face="Courier New"&gt;&amp;amp;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;Auswertungstag.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, its not clear to me why you have both numeric and character versions of JAHR1, seems unnecessary and redundant.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631917#M21014</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-13T15:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631921#M21015</link>
      <description>Is your SAS set to German for the language? If so then I assume it would take the German names.&lt;BR /&gt;&lt;BR /&gt;Easy enough to check;&lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;demo = put(today(), monname.);&lt;BR /&gt;put demo;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;And check your log.&lt;BR /&gt;&lt;BR /&gt;The CATT() and CALL SYMPTUX() will fix the rest of your issues.</description>
      <pubDate>Fri, 13 Mar 2020 15:33:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631921#M21015</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-13T15:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631935#M21016</link>
      <description>&lt;P&gt;The other macro variables are used in different program configurations, regarding the data source I have. Some define years as Numeric, others as Alphanumeric, and I need to fix the parameters for my selections somewhere. It's difficult to explain, but defining this standard bloc to set some fix group of macros helps me a lot in different programs. I cannot send the program texts, which you could then certainly optimize, but I'm moving forward step by step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the name of the export itself, my problem is the following:&lt;/P&gt;&lt;P&gt;- I have 2 parameters: Auswertungstag (date) and Spanne (number of months, starting reversely to the month of Auswertungstag, but only the same year)&lt;/P&gt;&lt;P&gt;example1: Auswertungstag =01.03.2020 and Spanne = 1&amp;nbsp; then Name = Februar_2020&lt;/P&gt;&lt;P&gt;example2: Auswertungstag =01.03.2020 and Spanne =&amp;nbsp;2&amp;nbsp; then Name = Januar_bis_Februar_2020&lt;/P&gt;&lt;P&gt;example3: Auswertungstag =01.03.2020 and Spanne =&amp;nbsp;5&amp;nbsp; then Name = error&lt;/P&gt;&lt;P&gt;- names of the months are in german.&lt;/P&gt;&lt;P&gt;- the Name will be used to name export files without trailing blanks. ORB_Januar_bis_Februar_2020.xlsx and not ORB_Januar_bis_Februar_2020&amp;nbsp;&amp;nbsp;&amp;nbsp; .xlsx&amp;nbsp;for instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it's a better way to explain the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631935#M21016</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-03-13T15:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631936#M21017</link>
      <description>&lt;P&gt;Hello Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried, and SAS is set up at ENGLISH.&lt;/P&gt;&lt;P&gt;Just bad luck. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;PY&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631936#M21017</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-03-13T15:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631941#M21018</link>
      <description>Well, if you're doing it more than once I'd recommend a format instead of using SELECT. It's reusable and more efficient in the long run. &lt;BR /&gt;&lt;BR /&gt;If you're not familiar with formats, I suggest a paper called "Not Just Another Pretty Face". It does a great job at illustrating how it works.</description>
      <pubDate>Fri, 13 Mar 2020 15:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631941#M21018</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-13T15:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631955#M21020</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/281554"&gt;@PierreYvesILY&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just tried, and SAS is set up at ENGLISH.&lt;/P&gt;
&lt;P&gt;Just bad luck. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;PY&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can specify LOCALE for language options as you desire at run time. Specify the locale for the language, and then use one of the NL formats. This should generate just the month name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options locale=German_Germany;
data _null_;
   date=mdy(2,14,2003);  
put month nldatemn.;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Mar 2020 16:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631955#M21020</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-13T16:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631962#M21023</link>
      <description>thanks a lot&lt;BR /&gt;have a ni ce WE&lt;BR /&gt;regards, py</description>
      <pubDate>Fri, 13 Mar 2020 16:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/631962#M21023</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-03-13T16:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: optimize the name of export files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/632017#M21029</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/281554"&gt;@PierreYvesILY&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The other macro variables are used in different program configurations, regarding the data source I have. Some define years as Numeric, others as Alphanumeric, and I need to fix the parameters for my selections somewhere. It's difficult to explain, but defining this standard bloc to set some fix group of macros helps me a lot in different programs. I cannot send the program texts, which you could then certainly optimize, but I'm moving forward step by step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Macros and macro variables are not the same thing. I see why you need macro variables. I said you don't need macros anywhere that I can see, especially the three in the data step.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 18:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/optimize-the-name-of-export-files/m-p/632017#M21029</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-13T18:34:15Z</dc:date>
    </item>
  </channel>
</rss>

