<?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: Working with the Dates and Time using SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Working-with-the-Dates-and-Time-using-SAS/m-p/63915#M18178</link>
    <description>Hi:&lt;BR /&gt;
  This posting doesn't seem complete. However, I wonder whether it's related to these previous postings which included DateTimeofSale in your code examples:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32926肞" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32926肞&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32879聯" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32879聯&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32870聦" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32870聦&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32871聧" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32871聧&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32498绲" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32498绲&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32427纫" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32427纫&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Recommended reading:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000178212.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000178212.htm&lt;/A&gt;&lt;BR /&gt;
     &lt;BR /&gt;
SAS Language Reference: Concepts, About SAS Date, Time, and Datetime Values&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a002200738.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a002200738.htm&lt;/A&gt; &lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 03 Mar 2010 05:59:47 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-03-03T05:59:47Z</dc:date>
    <item>
      <title>Working with the Dates and Time using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Working-with-the-Dates-and-Time-using-SAS/m-p/63914#M18177</link>
      <description>data PrepForTabulate /view=PrepForTabulate;&lt;BR /&gt;
  set sales;&lt;BR /&gt;
  DateofSale=datepart(DateTimeofSale);&lt;BR /&gt;
  SameDayDelivery=timepart(DateTimeofSale)&amp;lt;='15:00:00't;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data = PrepForTabulate;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
When I run this code the DateTimeofSale column shows no result as do the Dateof Sale column . I think that i need to convert the date first but really stucked in doing it as I dont have any information on the width of the Date variable. The log says  :-&lt;BR /&gt;
&lt;BR /&gt;
403  data PrepForTabulate /view=PrepForTabulate;&lt;BR /&gt;
404    set sales;&lt;BR /&gt;
405    DateofSale=datepart(DateTimeofSale);&lt;BR /&gt;
406    SameDayDelivery=timepart(DateTimeofSale)&amp;lt;='15:00:00't;&lt;BR /&gt;
407  run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;
      405:14&lt;BR /&gt;
NOTE: DATA STEP view saved on file WORK.PREPFORTABULATE.&lt;BR /&gt;
NOTE: A stored DATA STEP view cannot run under a different operating system.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.03 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
408  proc print data = PrepForTabulate;&lt;BR /&gt;
409  run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Variable DateTimeofSale is uninitialized.&lt;BR /&gt;
NOTE: Writing HTML Body file: sashtml20.htm&lt;BR /&gt;
NOTE: Missing values were generated as a result of performing an operation on missing values.&lt;BR /&gt;
      Each place is given by: (Number of times) at (Line):(Column).&lt;BR /&gt;
      425 at 472:14   425 at 473:19&lt;BR /&gt;
NOTE: View WORK.PREPFORTABULATE.VIEW used (Total process time):&lt;BR /&gt;
      real time           0.18 seconds&lt;BR /&gt;
      cpu time            0.20 seconds&lt;BR /&gt;
&lt;BR /&gt;
Kindly guide as to what addition i need to make to data step in oredr that the new variable DateTimeofSale and DateofSale gives result.&lt;BR /&gt;
&lt;BR /&gt;
Regards ,&lt;BR /&gt;
&lt;BR /&gt;
siddharth</description>
      <pubDate>Wed, 03 Mar 2010 05:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Working-with-the-Dates-and-Time-using-SAS/m-p/63914#M18177</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-03T05:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the Dates and Time using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Working-with-the-Dates-and-Time-using-SAS/m-p/63915#M18178</link>
      <description>Hi:&lt;BR /&gt;
  This posting doesn't seem complete. However, I wonder whether it's related to these previous postings which included DateTimeofSale in your code examples:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32926肞" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32926肞&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32879聯" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32879聯&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32870聦" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32870聦&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32871聧" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32871聧&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32498绲" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32498绲&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32427纫" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32427纫&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Recommended reading:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000178212.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000178212.htm&lt;/A&gt;&lt;BR /&gt;
     &lt;BR /&gt;
SAS Language Reference: Concepts, About SAS Date, Time, and Datetime Values&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a002200738.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a002200738.htm&lt;/A&gt; &lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 03 Mar 2010 05:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Working-with-the-Dates-and-Time-using-SAS/m-p/63915#M18178</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-03-03T05:59:47Z</dc:date>
    </item>
  </channel>
</rss>

