<?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: SQL Code Date info Calculation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867196#M342476</link>
    <description>&lt;P&gt;It's a bit hard to say where the error message comes from, but I think it is because you have a comma before FROM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for your "subselect" statements, they do not make sense at all. What are you trying to accomplish with those?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 08:31:10 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2023-03-30T08:31:10Z</dc:date>
    <item>
      <title>SQL Code Date info Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867073#M342430</link>
      <description>&lt;P&gt;Hi I'm having trouble with the following code- specifically the subselect statements, any ideas on how to modify this?:&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE class=""&gt;&lt;BR /&gt;&lt;BR /&gt;PROC &lt;SPAN class=""&gt;SQL&lt;/SPAN&gt;;
   &lt;SPAN class=""&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class=""&gt;TABLE&lt;/SPAN&gt; WORK.QUERY_FOR_VVW_DWH_PTN &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; 
   &lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; t1.PlayerId, 
          t1.FirstName, 
          t1.LastName, 
          t1.Email, 
          t2.EndDate, 
          t2.Most_Recent_Overall_Experience, 
          t1.AdtLifetimeRange &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; AdtLifetimeRange1,
          (&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; t1.AdtLifetimeRange &lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt; t2.EndDate &lt;SPAN class=""&gt;&amp;lt;=&lt;/SPAN&gt; intnx(&lt;SPAN class=""&gt;'month'&lt;/SPAN&gt;, today(), &lt;SPAN class=""&gt;-6&lt;/SPAN&gt;, &lt;SPAN class=""&gt;'e'&lt;/SPAN&gt;)) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; ADT6MoBack,
          (&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; t1.AdtLifetimeRange &lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt; t2.EndDate &lt;SPAN class=""&gt;&amp;gt;=&lt;/SPAN&gt; intnx(&lt;SPAN class=""&gt;'month'&lt;/SPAN&gt;, today(), &lt;SPAN class=""&gt;-6&lt;/SPAN&gt;, &lt;SPAN class=""&gt;'e'&lt;/SPAN&gt;)) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; ADT6MoForAS,
 
      &lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; TDQT.vCXSurvey t2
           &lt;SPAN class=""&gt;INNER&lt;/SPAN&gt; &lt;SPAN class=""&gt;JOIN&lt;/SPAN&gt; TDQT.vCXPlayer_SAS t1 &lt;SPAN class=""&gt;ON&lt;/SPAN&gt; (t2.PlayerId &lt;SPAN class=""&gt;=&lt;/SPAN&gt; t1.PlayerId);
    &lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt; t2.EndDate &lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;'20Mar2022'&lt;/SPAN&gt;d;
QUIT;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the error I get:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?,&lt;BR /&gt;AND, AS, BETWEEN, CONTAINS, EQ, EQT, FORMAT, FROM, GE, GET, GT, GTT, IN, INFORMAT, INTO, IS, LABEL, LE, LEN, LENGTH,&lt;BR /&gt;LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, TRANSCODE, ^, ^=, |, ||, ~, ~=.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;P&gt;41 FROM TDQT.vCXSurvey t2&lt;BR /&gt;42 INNER JOIN TDQT.vCXPlayer_SAS t1 ON (t2.PlayerId = t1.PlayerId);&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;43 WHERE t2.EndDate &amp;lt;'03/20/2022'&lt;BR /&gt;WARNING: This SAS global statement is not supported in PROC SQL. It has been ignored.&lt;BR /&gt;44 QUIT;&lt;BR /&gt;2 The SAS System Wednesday, March 29, 2023 09:06:00 AM&lt;/P&gt;
&lt;P&gt;45&lt;BR /&gt;46&lt;BR /&gt;47&lt;BR /&gt;48 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;49 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;50 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;51 %LET _CLIENTPROJECTPATHHOST=;&lt;BR /&gt;52 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;53 %LET _SASPROGRAMFILE=;&lt;BR /&gt;54 %LET _SASPROGRAMFILEHOST=;&lt;BR /&gt;55&lt;BR /&gt;56 ;*';*";*/;quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time&lt;/P&gt;
&lt;P&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?,&lt;BR /&gt;AND, AS, BETWEEN, CONTAINS, EQ, EQT, FORMAT, FROM, GE, GET, GT, GTT, IN, INFORMAT, INTO, IS, LABEL, LE, LEN, LENGTH,&lt;BR /&gt;LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, TRANSCODE, ^, ^=, |, ||, ~, ~=.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;P&gt;41 FROM TDQT.vCXSurvey t2&lt;BR /&gt;42 INNER JOIN TDQT.vCXPlayer_SAS t1 ON (t2.PlayerId = t1.PlayerId);&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;43 WHERE t2.EndDate &amp;lt;'03/20/2022'&lt;BR /&gt;WARNING: This SAS global statement is not supported in PROC SQL. It has been ignored.&lt;BR /&gt;44 QUIT;&lt;BR /&gt;2 The SAS System Wednesday, March 29, 2023 09:06:00 AM&lt;/P&gt;
&lt;P&gt;45&lt;BR /&gt;46&lt;BR /&gt;47&lt;BR /&gt;48 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;49 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;50 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;51 %LET _CLIENTPROJECTPATHHOST=;&lt;BR /&gt;52 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;53 %LET _SASPROGRAMFILE=;&lt;BR /&gt;54 %LET _SASPROGRAMFILEHOST=;&lt;BR /&gt;55&lt;BR /&gt;56 ;*';*";*/;quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time&lt;/P&gt;
&lt;PRE class=""&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 17:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867073#M342430</guid>
      <dc:creator>rrmenon</dc:creator>
      <dc:date>2023-03-29T17:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Date info Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867074#M342431</link>
      <description>I posted an answer on SO.</description>
      <pubDate>Wed, 29 Mar 2023 17:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867074#M342431</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-03-29T17:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Date info Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867075#M342432</link>
      <description>&lt;P&gt;Thanks I saw- for some reason not working still&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 17:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867075#M342432</guid>
      <dc:creator>rrmenon</dc:creator>
      <dc:date>2023-03-29T17:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Date info Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867077#M342434</link>
      <description>&lt;P&gt;You have a surplus comma before the FROM.&lt;/P&gt;
&lt;P&gt;You also have a wrong semicolon before the WHERE.&lt;/P&gt;
&lt;P&gt;Also please use a code box (as you did for the code) to post the log, so we can see where the ERROR markers are placed.&lt;/P&gt;
&lt;P&gt;And post the whole log, from the start of the procedure to the QUIT;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 17:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867077#M342434</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-29T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Date info Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867079#M342436</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I posted an answer on SO.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Many of us can't benefit from this, as we don't know what this means. Can you provide a link?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 17:33:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867079#M342436</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-29T17:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Date info Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867103#M342445</link>
      <description>&lt;P&gt;Thanks Reeza but I'm still getting the same error&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867103#M342445</guid>
      <dc:creator>rrmenon</dc:creator>
      <dc:date>2023-03-29T19:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Date info Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867105#M342446</link>
      <description>&lt;P&gt;Post the log, as requested.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867105#M342446</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-29T19:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Date info Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867107#M342448</link>
      <description>&lt;P&gt;HI Reeza, the sub select statements do not have a From clasue, would you mind helmping me construct this?&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE class=""&gt;PROC &lt;SPAN class=""&gt;SQL&lt;/SPAN&gt;;
   &lt;SPAN class=""&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class=""&gt;TABLE&lt;/SPAN&gt; WORK.QUERY_FOR_VVW_DWH_PTN &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; 
   &lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; t1.PlayerId, 
          t1.FirstName, 
          t1.LastName, 
          t1.Email, 
          t2.EndDate, 
          t2.Most_Recent_Overall_Experience, 
          t1.AdtLifetimeRange &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; AdtLifetimeRange1,
          (&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; t1.AdtLifetimeRange &lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt; t2.EndDate &lt;SPAN class=""&gt;&amp;lt;=&lt;/SPAN&gt; intnx(&lt;SPAN class=""&gt;'month'&lt;/SPAN&gt;, today(), &lt;SPAN class=""&gt;-6&lt;/SPAN&gt;, &lt;SPAN class=""&gt;'e'&lt;/SPAN&gt;)) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; ADT6MoBack,
          (&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; t1.AdtLifetimeRange &lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt; t2.EndDate &lt;SPAN class=""&gt;&amp;gt;=&lt;/SPAN&gt; intnx(&lt;SPAN class=""&gt;'month'&lt;/SPAN&gt;, today(), &lt;SPAN class=""&gt;-6&lt;/SPAN&gt;, &lt;SPAN class=""&gt;'e'&lt;/SPAN&gt;)) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; ADT6MoForAS,
 
      &lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; TDQT.vCXSurvey t2
           &lt;SPAN class=""&gt;INNER&lt;/SPAN&gt; &lt;SPAN class=""&gt;JOIN&lt;/SPAN&gt; TDQT.vCXPlayer_SAS t1 &lt;SPAN class=""&gt;ON&lt;/SPAN&gt; (t2.PlayerId &lt;SPAN class=""&gt;=&lt;/SPAN&gt; t1.PlayerId);
    &lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt; t2.EndDate &lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;'20Mar2022'&lt;/SPAN&gt;d;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867107#M342448</guid>
      <dc:creator>rrmenon</dc:creator>
      <dc:date>2023-03-29T19:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Date info Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867112#M342449</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/440264"&gt;@rrmenon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks I saw- for some reason not working still&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You didn't provide any of the information requested either:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Original SQL language (this is not SAS SQL)&lt;/LI&gt;
&lt;LI&gt;Full log that shows where the error occurred&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Original answer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Remove square brackets ]&lt;/LI&gt;
&lt;LI&gt;Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p10v3sa3i4kfxfn1sovhi5xzxh8n.htm" rel="nofollow noreferrer" target="_blank"&gt;INTNX()&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for date increments&lt;/LI&gt;
&lt;LI&gt;Dates need to be in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://documentation.sas.com/doc/en/lrcon/9.4/p0cq7f0icfjr8vn19vyunwmmsl7m.htm#n1bbnuc86c5c5hn113qbpt5u9g5f" rel="nofollow noreferrer" target="_blank"&gt;date. style&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- DDMMMYY ("20MAR2022"d)&lt;/LI&gt;
&lt;LI&gt;There is no NOW() function in SAS, but there is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p0hm9egy8s7mokn1mz0yxng80ax5.htm" rel="nofollow noreferrer" target="_blank"&gt;TODAY()&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;which returns today's date&lt;/LI&gt;
&lt;LI&gt;Missing semicolon at end of query (before QUIT;)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;An attempt at correcting your code, but not 100% sure as I don't know what type of SQL you're using:&lt;/P&gt;
&lt;PRE class="lang-sql s-code-block"&gt;&lt;CODE class="hljs language-sql"&gt;PROC &lt;SPAN class="hljs-keyword"&gt;SQL&lt;/SPAN&gt;;
   &lt;SPAN class="hljs-keyword"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;TABLE&lt;/SPAN&gt; WORK.QUERY_FOR_VVW_DWH_PTN &lt;SPAN class="hljs-keyword"&gt;AS&lt;/SPAN&gt; 
   &lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; t1.PlayerId, 
          t1.FirstName, 
          t1.LastName, 
          t1.Email, 
          t2.EndDate, 
          t2.Most_Recent_Overall_Experience, 
          t1.AdtLifetimeRange &lt;SPAN class="hljs-keyword"&gt;AS&lt;/SPAN&gt; AdtLifetimeRange1,
          (&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; t1.AdtLifetimeRange &lt;SPAN class="hljs-keyword"&gt;WHERE&lt;/SPAN&gt; t2.EndDate &lt;SPAN class="hljs-operator"&gt;&amp;lt;=&lt;/SPAN&gt; intnx(&lt;SPAN class="hljs-string"&gt;'month'&lt;/SPAN&gt;, today(), &lt;SPAN class="hljs-number"&gt;-6&lt;/SPAN&gt;, &lt;SPAN class="hljs-string"&gt;'e'&lt;/SPAN&gt;)) &lt;SPAN class="hljs-keyword"&gt;AS&lt;/SPAN&gt; ADT6MoBack,
          (&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; t1.AdtLifetimeRange &lt;SPAN class="hljs-keyword"&gt;WHERE&lt;/SPAN&gt; t2.EndDate &lt;SPAN class="hljs-operator"&gt;&amp;gt;=&lt;/SPAN&gt; intnx(&lt;SPAN class="hljs-string"&gt;'month'&lt;/SPAN&gt;, today(), &lt;SPAN class="hljs-number"&gt;-6&lt;/SPAN&gt;, &lt;SPAN class="hljs-string"&gt;'e'&lt;/SPAN&gt;)) &lt;SPAN class="hljs-keyword"&gt;AS&lt;/SPAN&gt; ADT6MoForAS,
 
      &lt;SPAN class="hljs-keyword"&gt;FROM&lt;/SPAN&gt; TDQT.vCXSurvey t2
           &lt;SPAN class="hljs-keyword"&gt;INNER&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;JOIN&lt;/SPAN&gt; TDQT.vCXPlayer_SAS t1 &lt;SPAN class="hljs-keyword"&gt;ON&lt;/SPAN&gt; (t2.PlayerId &lt;SPAN class="hljs-operator"&gt;=&lt;/SPAN&gt; t1.PlayerId);
    &lt;SPAN class="hljs-keyword"&gt;WHERE&lt;/SPAN&gt; t2.EndDate &lt;SPAN class="hljs-operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="hljs-string"&gt;'20Mar2022'&lt;/SPAN&gt;d;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867112#M342449</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-03-29T19:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Date info Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867196#M342476</link>
      <description>&lt;P&gt;It's a bit hard to say where the error message comes from, but I think it is because you have a comma before FROM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for your "subselect" statements, they do not make sense at all. What are you trying to accomplish with those?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 08:31:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Code-Date-info-Calculation/m-p/867196#M342476</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2023-03-30T08:31:10Z</dc:date>
    </item>
  </channel>
</rss>

