<?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 sas DI studio macro date in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/sas-DI-studio-macro-date/m-p/166203#M3186</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 requirement in SAS DI where I need to create dates like&lt;/P&gt;&lt;P&gt;2 months before the current date&lt;/P&gt;&lt;P&gt;3 months before the current date&lt;/P&gt;&lt;P&gt;4 months before the current date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one provide me the way to derive these dates based on the system date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 00:57:47 GMT</pubDate>
    <dc:creator>sabooalex</dc:creator>
    <dc:date>2014-02-07T00:57:47Z</dc:date>
    <item>
      <title>sas DI studio macro date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-DI-studio-macro-date/m-p/166203#M3186</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 requirement in SAS DI where I need to create dates like&lt;/P&gt;&lt;P&gt;2 months before the current date&lt;/P&gt;&lt;P&gt;3 months before the current date&lt;/P&gt;&lt;P&gt;4 months before the current date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one provide me the way to derive these dates based on the system date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 00:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-DI-studio-macro-date/m-p/166203#M3186</guid>
      <dc:creator>sabooalex</dc:creator>
      <dc:date>2014-02-07T00:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: sas DI studio macro date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-DI-studio-macro-date/m-p/166204#M3187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 9pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt; month_back2 = &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 9pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt;(intnx(MONTH, "&amp;amp;sysdate9."d, - 2, SAME), date9.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 9pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt; month_back3 = &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 9pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt;(intnx(MONTH, "&amp;amp;sysdate9."d, - 3, SAME), date9.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 9pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt; month_back4 = &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 9pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt;(intnx(MONTH, "&amp;amp;sysdate9."d, - 4, SAME), date9.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 9pt;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt; month_back2 = &amp;amp;month_back2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 9pt;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt; month_back3 = &amp;amp;month_back3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 9pt;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt; month_back4 = &amp;amp;month_back4;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 01:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-DI-studio-macro-date/m-p/166204#M3187</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-02-07T01:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: sas DI studio macro date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-DI-studio-macro-date/m-p/166205#M3188</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;Thanks for getting back to me,much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I will copy this in the precode of the job, and it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last thing on this question,can the same not be done by using the parameters tab of the job or one has to write this code manually?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 08:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-DI-studio-macro-date/m-p/166205#M3188</guid>
      <dc:creator>sabooalex</dc:creator>
      <dc:date>2014-02-07T08:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: sas DI studio macro date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-DI-studio-macro-date/m-p/166206#M3189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my mind, parameters are usfell when connection to job using a data set as a control table, and the loop transform.&lt;/P&gt;&lt;P&gt;You could use parameters, but I can't see the benefit in your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 10:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-DI-studio-macro-date/m-p/166206#M3189</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-02-07T10:28:22Z</dc:date>
    </item>
  </channel>
</rss>

