<?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 Creating a ddccmmyy macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-ddccmmyy-macro/m-p/87948#M257134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;I am currently trying to assign a Year macro that will show the year : like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; yr = year(&amp;amp;date.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; dag = day(&amp;amp;date.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; yydd = compress(&amp;amp;yr.||&amp;amp;dag.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;For e.g. NAME = D20130719&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2013 09:42:46 GMT</pubDate>
    <dc:creator>EMC9</dc:creator>
    <dc:date>2013-07-24T09:42:46Z</dc:date>
    <item>
      <title>Creating a ddccmmyy macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-ddccmmyy-macro/m-p/87948#M257134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;I am currently trying to assign a Year macro that will show the year : like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; yr = year(&amp;amp;date.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; dag = day(&amp;amp;date.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; yydd = compress(&amp;amp;yr.||&amp;amp;dag.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;For e.g. NAME = D20130719&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 09:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-ddccmmyy-macro/m-p/87948#M257134</guid>
      <dc:creator>EMC9</dc:creator>
      <dc:date>2013-07-24T09:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a ddccmmyy macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-ddccmmyy-macro/m-p/87949#M257135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Allistair,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let year&amp;nbsp; = %sysfunc(year("&amp;amp;sysdate"d));&lt;/P&gt;&lt;P&gt;%let month = %sysfunc(putn(%sysfunc(month("&amp;amp;sysdate"d)),Z2.));&lt;/P&gt;&lt;P&gt;%let day&amp;nbsp;&amp;nbsp; = %sysfunc(putn(%sysfunc(day("&amp;amp;sysdate"d)),Z2.));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let combined = D&amp;amp;year.&amp;amp;month.&amp;amp;day;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put&amp;nbsp; &amp;amp;combined;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 09:47:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-ddccmmyy-macro/m-p/87949#M257135</guid>
      <dc:creator>arnouxvr</dc:creator>
      <dc:date>2013-07-24T09:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a ddccmmyy macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-ddccmmyy-macro/m-p/87950#M257136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arnoux&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will try that out now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 09:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-ddccmmyy-macro/m-p/87950#M257136</guid>
      <dc:creator>EMC9</dc:creator>
      <dc:date>2013-07-24T09:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a ddccmmyy macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-ddccmmyy-macro/m-p/87951#M257137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also create a Picture Format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC FORMAT ;&lt;/P&gt;&lt;P&gt;PICTURE&amp;nbsp; DYYMMDD LOW-HIGH = "D"'%Y%0m%0d'&lt;/P&gt;&lt;P&gt;(DATATYPE = DATE) ;&lt;/P&gt;&lt;P&gt;RUN ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%LET WANT = %SYSFUNC(PUTN("&amp;amp;SYSDATE."D,DYYMMDD.));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%PUT ************** &amp;amp;WANT.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable WANT resolves to D20130723&lt;/P&gt;&lt;P&gt;************** D20130723&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 10:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-ddccmmyy-macro/m-p/87951#M257137</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2013-07-24T10:13:29Z</dc:date>
    </item>
  </channel>
</rss>

