<?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: How do I create date prompt in SAS EG, calculate other dates from that date, &amp;amp; pass to Terad in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-date-prompt-in-SAS-EG-calculate-other-dates-from/m-p/327477#M73059</link>
    <description>Bump</description>
    <pubDate>Wed, 25 Jan 2017 18:24:15 GMT</pubDate>
    <dc:creator>robertyknwt</dc:creator>
    <dc:date>2017-01-25T18:24:15Z</dc:date>
    <item>
      <title>How do I create date prompt in SAS EG, calculate other dates from that date, &amp; pass to Teradata?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-date-prompt-in-SAS-EG-calculate-other-dates-from/m-p/327123#M72950</link>
      <description>&lt;P&gt;I've got a bunch of queries which use a few different dates in different WHERE clauses in PROC SQL statements. Some of those queries are pass-through queries to Teradata. I've gone through documentation and other questions/answers here, and tried different things to figure this out, but I haven't found the solution that works. This is what I want to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Prompt the user for a month and year (e.g. OCT16, like MONYY. format);&lt;/LI&gt;&lt;LI&gt;Calculate various dates from that prompt result (e.g. calculate 2016-10-31 and 2015-11-01 as &amp;amp;EndDate and &amp;amp;StartDate from OCT16);&lt;/LI&gt;&lt;LI&gt;Format those dates properly in a PROC SQL statement that is a pass-through query to one of our Teradata data warehouses, as in the following:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;connect to teradata as mycon(server= dwprod3 authdomain=teradataauth mode=teradata );&lt;BR /&gt;create table MyTable&amp;nbsp;as&lt;BR /&gt;select * from connection to mycon&lt;BR /&gt;(&lt;BR /&gt;Select *&lt;/P&gt;&lt;P&gt;From COC_V20_NOHAPHI.TABLE&lt;/P&gt;&lt;P&gt;WHERE TABLE.RecordDate &amp;nbsp;between &amp;amp;StartDate. and &amp;amp;EndDate.&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 17:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-date-prompt-in-SAS-EG-calculate-other-dates-from/m-p/327123#M72950</guid>
      <dc:creator>robertyknwt</dc:creator>
      <dc:date>2017-01-24T17:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create date prompt in SAS EG, calculate other dates from that date, &amp; pass to Terad</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-date-prompt-in-SAS-EG-calculate-other-dates-from/m-p/327146#M72958</link>
      <description>&lt;P&gt;I have searched google for "&lt;STRONG&gt;terradata date litereal&lt;/STRONG&gt;" and found next link,&lt;/P&gt;
&lt;P&gt;which I believe you'll find there the syntax:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://teradataforum.com/l070316a.htm" target="_self"&gt;http://teradataforum.com/l070316a.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example taken from there:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Literals

Date literals can be specified in many ways:

-- in the same format as the column they are being compared to

where infamy_date = '12/07/1941'
-- with an explicit format

where infamy_date = '07Dec1941' (date, format 'DDMMMYYYY')
-- in ANSI standard form (must be preceded by the keyword DATE)

where infamy_date = date '1941-12-07'
-- in numeric form (not recommended)

where infamy_date = 411207&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 19:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-date-prompt-in-SAS-EG-calculate-other-dates-from/m-p/327146#M72958</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-01-24T19:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create date prompt in SAS EG, calculate other dates from that date, &amp; pass to Terad</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-date-prompt-in-SAS-EG-calculate-other-dates-from/m-p/327151#M72960</link>
      <description>Thank you! That definitely helps me on my third point.</description>
      <pubDate>Tue, 24 Jan 2017 19:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-date-prompt-in-SAS-EG-calculate-other-dates-from/m-p/327151#M72960</guid>
      <dc:creator>robertyknwt</dc:creator>
      <dc:date>2017-01-24T19:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create date prompt in SAS EG, calculate other dates from that date, &amp; pass to Terad</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-date-prompt-in-SAS-EG-calculate-other-dates-from/m-p/327477#M73059</link>
      <description>Bump</description>
      <pubDate>Wed, 25 Jan 2017 18:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-date-prompt-in-SAS-EG-calculate-other-dates-from/m-p/327477#M73059</guid>
      <dc:creator>robertyknwt</dc:creator>
      <dc:date>2017-01-25T18:24:15Z</dc:date>
    </item>
  </channel>
</rss>

