<?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 &amp;gt;= current in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23450#M5199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use DATE() to get today's date and DATETIME() to get the current time as a datetime value.&lt;/P&gt;&lt;P&gt;You can also use &amp;amp;SYSDATE9 to get the date that the program session started. and &amp;amp;SYSTIME to get the time it started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify a date literal in SAS by using quoted string followed by the letter d. Use the date. format.&amp;nbsp; For example today is &lt;BR /&gt;"06MAR2012"d&lt;/P&gt;&lt;P&gt;For datetime use dt as the suffix.&amp;nbsp; "01MAR2012:14:18"dt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use %SYSFUNC to let you call DATE() and generate the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"%sysfunc(date(),date9.)"d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you referencing an external database? or just referencing SAS datasets?&amp;nbsp; Different databases will have different ways of storing dates (datetime versus date only for example) and specifying a specific date (does it use ddMMMyyyy format like SAS or does it want YYYYMMDD or some other format.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2012 19:20:37 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2012-03-06T19:20:37Z</dc:date>
    <item>
      <title>&gt;= current</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23445#M5194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to create my query so that my date is &amp;gt;= today and I have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;market_row_eff_dt &amp;gt;=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not sure what to put in???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 17:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23445#M5194</guid>
      <dc:creator>tmm</dc:creator>
      <dc:date>2012-03-06T17:27:30Z</dc:date>
    </item>
    <item>
      <title>&gt;= current</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23446#M5195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you may be looking for: Date() which returns the current date. BUT your variable name ending in DT makes me think you are actually comparing a DATETIME value, not a date. if that is the case you may be looking for DATEPART(market_row_eff_dt) ge Date().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 17:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23446#M5195</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-03-06T17:43:26Z</dc:date>
    </item>
    <item>
      <title>&gt;= current</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23447#M5196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; So in my proc sql code I have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc_cd in (&amp;amp;ortho)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;datepart(market_row_eff_dt) &amp;gt;= date()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot use get in the SQL statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 17:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23447#M5196</guid>
      <dc:creator>tmm</dc:creator>
      <dc:date>2012-03-06T17:46:41Z</dc:date>
    </item>
    <item>
      <title>&gt;= current</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23448#M5197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I cannot get this to work within my proc sql code. I put a bit below of what I have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 19:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23448#M5197</guid>
      <dc:creator>tmm</dc:creator>
      <dc:date>2012-03-06T19:07:18Z</dc:date>
    </item>
    <item>
      <title>&gt;= current</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23449#M5198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; makesure both datepart(market_row_eff_dt),&lt;/P&gt;&lt;P&gt;date() should be in same format. otherwise you get error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 19:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23449#M5198</guid>
      <dc:creator>sassharp</dc:creator>
      <dc:date>2012-03-06T19:12:04Z</dc:date>
    </item>
    <item>
      <title>&gt;= current</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23450#M5199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use DATE() to get today's date and DATETIME() to get the current time as a datetime value.&lt;/P&gt;&lt;P&gt;You can also use &amp;amp;SYSDATE9 to get the date that the program session started. and &amp;amp;SYSTIME to get the time it started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify a date literal in SAS by using quoted string followed by the letter d. Use the date. format.&amp;nbsp; For example today is &lt;BR /&gt;"06MAR2012"d&lt;/P&gt;&lt;P&gt;For datetime use dt as the suffix.&amp;nbsp; "01MAR2012:14:18"dt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use %SYSFUNC to let you call DATE() and generate the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"%sysfunc(date(),date9.)"d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you referencing an external database? or just referencing SAS datasets?&amp;nbsp; Different databases will have different ways of storing dates (datetime versus date only for example) and specifying a specific date (does it use ddMMMyyyy format like SAS or does it want YYYYMMDD or some other format.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 19:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23450#M5199</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-03-06T19:20:37Z</dc:date>
    </item>
    <item>
      <title>&gt;= current</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23451#M5200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; well this is my fix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;market_row_eff_dt &amp;gt;= current date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no () no ' just current date typed as u see and a space between. how odd. guess that is how DB2 handles it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 14:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23451#M5200</guid>
      <dc:creator>tmm</dc:creator>
      <dc:date>2012-03-07T14:31:43Z</dc:date>
    </item>
    <item>
      <title>&gt;= current</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23452#M5201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not odd.&amp;nbsp; That is how DB2 specifies it.&amp;nbsp; Take a look at: &lt;A href="http://www.ibm.com/developerworks/data/library/techarticle/0211yip/0211yip3.html"&gt;http://www.ibm.com/developerworks/data/library/techarticle/0211yip/0211yip3.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 14:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23452#M5201</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-03-07T14:44:25Z</dc:date>
    </item>
    <item>
      <title>&gt;= current</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23453#M5202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And you never bothered to let us know you were reading DB2 files. All of the above solutions work on SAS datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 16:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gt-current/m-p/23453#M5202</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-03-07T16:13:36Z</dc:date>
    </item>
  </channel>
</rss>

