<?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: Date record showing period (dot sign) instead of the date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507061#M72845</link>
    <description>&lt;P&gt;Take the macro from my second footnote and use it to create a data step with datalines from your dataset "daily". Just a sufficient numer of observations to illustrate your issue. This will take care of any ambiguities, as we can then run your code in exactly the same environment that you ran it.&lt;/P&gt;
&lt;P&gt;Posting output listings or copies of the tableview are NOT, I repeat NOT, helpful, as we can only see formatted values, and not the raw values underneath it.&lt;/P&gt;
&lt;P&gt;The macro will preserve all values and attributes &lt;EM&gt;as they are&lt;/EM&gt;, which is essential for detecting problems.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Oct 2018 06:58:16 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-10-24T06:58:16Z</dc:date>
    <item>
      <title>Date record showing period (dot sign) instead of the date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507035#M72837</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hi Community,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;I have some records in the output from the following logic that have 'date' in the raw data however appearing in the output as period (.).&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;What would cause such and can you help me please?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;Below is my logic&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;Data&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; bal_startdate (rename=(Date=StartDate) drop=Offset_Bal);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Daily;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; AccNo;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; first.AccNo;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;Proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;Sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Day5_bal &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;select&lt;/FONT&gt; &lt;FONT color="#008080" face="Courier New" size="2"&gt;a.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;*,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;b.offset_Bal,&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;b.date &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Day5,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;case&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;when&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; b.date is missing &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;'N'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;else&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;'Y'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; end &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Day5_Flag&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; bal_startdate a&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;left join Daily b &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; a.AccNo=b.AccNo &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; b.date=a.StartDate+&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;quit&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Kind regards,&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 23:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507035#M72837</guid>
      <dc:creator>Timbim</dc:creator>
      <dc:date>2018-10-23T23:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date record showing period (dot sign) instead of the date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507042#M72838</link>
      <description>&lt;P&gt;There will note be a variable named DATE in either of the datasets your code is creating.&lt;/P&gt;
&lt;P&gt;What variable are you saying has a missing value?&lt;/P&gt;
&lt;P&gt;Can you show example data for that ends up with missing value?&lt;/P&gt;
&lt;P&gt;Are you sure your "date" variable has integer values? Since you are using exact equality perhaps some of the values are slightly different and just appear the be same when the format is applied?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 00:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507042#M72838</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-10-24T00:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date record showing period (dot sign) instead of the date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507043#M72839</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an example with the missing date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Account&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;OpenDate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;OffSetBal&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Day5&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Day5_Flag&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;24-Sep-18&lt;/TD&gt;&lt;TD&gt;12345601&lt;/TD&gt;&lt;TD&gt;24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      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507043#M72839</guid>
      <dc:creator>Timbim</dc:creator>
      <dc:date>2018-10-24T00:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date record showing period (dot sign) instead of the date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507045#M72840</link>
      <description>&lt;P&gt;anydtdte informat may help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=leforinforref&amp;amp;docsetTarget=n04jh1fkv5c8zan14fhqcby7jsu4.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=leforinforref&amp;amp;docsetTarget=n04jh1fkv5c8zan14fhqcby7jsu4.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 01:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507045#M72840</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-10-24T01:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date record showing period (dot sign) instead of the date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507048#M72843</link>
      <description>&lt;P&gt;Thanks VDD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please provide an example on using anydtdte informat&amp;nbsp;in proc sql or data step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks kindly.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 01:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507048#M72843</guid>
      <dc:creator>Timbim</dc:creator>
      <dc:date>2018-10-24T01:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date record showing period (dot sign) instead of the date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507056#M72844</link>
      <description>&lt;P&gt;I do not understand what that posted table is trying to represent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does not look like what your program is expecting as input data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your original program is expecting a data set named&amp;nbsp;&lt;SPAN&gt;BAL_STARTDATE with multiple dates per value of ACCNO.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your example data has only one record per ACCNO.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It does not look like what your program appears to be creating as output.&amp;nbsp; That dataset should have a variable named STARTDATE.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 03:15:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507056#M72844</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-10-24T03:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date record showing period (dot sign) instead of the date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507061#M72845</link>
      <description>&lt;P&gt;Take the macro from my second footnote and use it to create a data step with datalines from your dataset "daily". Just a sufficient numer of observations to illustrate your issue. This will take care of any ambiguities, as we can then run your code in exactly the same environment that you ran it.&lt;/P&gt;
&lt;P&gt;Posting output listings or copies of the tableview are NOT, I repeat NOT, helpful, as we can only see formatted values, and not the raw values underneath it.&lt;/P&gt;
&lt;P&gt;The macro will preserve all values and attributes &lt;EM&gt;as they are&lt;/EM&gt;, which is essential for detecting problems.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 06:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-record-showing-period-dot-sign-instead-of-the-date/m-p/507061#M72845</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-24T06:58:16Z</dc:date>
    </item>
  </channel>
</rss>

