<?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: DDE in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196812#M49187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Why not just store the old info and overwrite the information?&lt;/P&gt;&lt;P&gt;2. I don't see what's wrong with your code. My first guess is that the macro variables have trailing spaces so it depends on how you're creating them. &lt;/P&gt;&lt;P&gt;You can test this by using MPRINT/SYMBOLGEN and see what's being executed. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Mar 2015 05:01:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-03-08T05:01:08Z</dc:date>
    <item>
      <title>DDE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196810#M49185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quarterly report which needs to add new months for the reporting quarter. I'm wondering if there is a way I can automate adding these months, instead of changing the row number manually every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, last quarter, the reporting months range was R28C3:R36C9, but for new quarter, I need to add 3 rows to R31C3:R39C9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME DATA1 DDE "EXCEL|sheet1!R28C3:R36C9";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use macro, but it doesn't work.&lt;/P&gt;&lt;P&gt;FILENAME DATA2 DDE "EXCEL|sheet1!R&amp;amp;cur_mm.C11:R&amp;amp;cur_mm.C12";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a easy way that I can add more rows for each reporting quarter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 01:14:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196810#M49185</guid>
      <dc:creator>Belle</dc:creator>
      <dc:date>2015-03-08T01:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: DDE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196811#M49186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't you want R37C3:R39C ?&amp;nbsp; What is the value of &amp;amp;cur_mm, ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 02:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196811#M49186</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-03-08T02:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: DDE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196812#M49187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Why not just store the old info and overwrite the information?&lt;/P&gt;&lt;P&gt;2. I don't see what's wrong with your code. My first guess is that the macro variables have trailing spaces so it depends on how you're creating them. &lt;/P&gt;&lt;P&gt;You can test this by using MPRINT/SYMBOLGEN and see what's being executed. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 05:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196812#M49187</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-08T05:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: DDE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196813#M49188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the solution. It works now. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q3 2014:&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;FILENAME DATA1 DDE "EXCEL|sheet1!R28C3:R&lt;STRONG&gt;36&lt;/STRONG&gt;C9";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Q4 2014:&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;FILENAME DATA1 DDE "EXCEL|sheet1!R&lt;STRONG&gt;28&lt;/STRONG&gt;C3:R&lt;STRONG&gt;39&lt;/STRONG&gt;C9";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Q1 2015:&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;FILENAME DATA1 DDE "EXCEL|sheet1!R&lt;STRONG&gt;40&lt;/STRONG&gt;C3:R&lt;STRONG&gt;42&lt;/STRONG&gt;C9";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Q2 2015:&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;FILENAME DATA1 DDE "EXCEL|sheet1!R40C3:R&lt;STRONG&gt;45&lt;/STRONG&gt;C9";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Q3 2015:&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;FILENAME DATA1 DDE "EXCEL|sheet1!R40C3:R&lt;STRONG&gt;48&lt;/STRONG&gt;C9";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Q4 2015:&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;FILENAME DATA1 DDE "EXCEL|sheet1!R40C3:R&lt;STRONG&gt;51&lt;/STRONG&gt;C9";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I want the result like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Q4 2014:&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;FILENAME DATA1 DDE "EXCEL|sheet1!R&lt;STRONG&gt;&amp;amp;BYR&lt;/STRONG&gt;.C3:R&lt;STRONG&gt;&amp;amp;EQTR.&lt;/STRONG&gt;C9";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Q1 2015:&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;FILENAME DATA1 DDE "EXCEL|sheet1!R&lt;STRONG&gt;&amp;amp;BYR.&lt;/STRONG&gt;C3:R&lt;STRONG&gt;&amp;amp;EQTR.&lt;/STRONG&gt;C9";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;What I did is manually enter the beginning year number, and calculate the end of the quarter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;for 2014 Q4,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let BYRrow= 28;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data temp2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; TODAY&amp;nbsp;&amp;nbsp; = TODAY();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CURYR&amp;nbsp;&amp;nbsp; = PUT(YEAR(TODAY),Z4.);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CURQ&amp;nbsp;&amp;nbsp;&amp;nbsp; = QTR(today);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; format today date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if CURQ = 1 then &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mos_cur = MONTH(intnx('year',today,-1, 'end'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else mos_cur = MONTH(intnx('Qtr',today,-2, 'end'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BYR&amp;nbsp;&amp;nbsp;&amp;nbsp; = &amp;amp;BYRrow. + mos_cur - 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL SYMPUTX('BYR',BYR);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" height="352" src="https://communities.sas.com/legacyfs/online/9497_pastedImage_7.png" width="441" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 06:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196813#M49188</guid>
      <dc:creator>Belle</dc:creator>
      <dc:date>2015-03-08T06:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: DDE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196814#M49189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're only trying to add 3 months of data at a time, I think your current formula will overwrite some of your data each time. Possibly something like the following might be easier to maintain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let year=2015;&lt;/P&gt;&lt;P&gt;%let qtr=1; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; start=%eval(4+((&amp;amp;year.-2012)*12)+(&amp;amp;qtr.-1)*3);&lt;/P&gt;&lt;P&gt;&amp;nbsp; end=start+2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL SYMPUTX('BQTR',start);&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL SYMPUTX('EQTR',end);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME DATA1 DDE "EXCEL|sheet1!R&amp;amp;BQTR.C3:R&amp;amp;EQTR.C9";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 15:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DDE/m-p/196814#M49189</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-03-08T15:49:41Z</dc:date>
    </item>
  </channel>
</rss>

