<?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 Date not displaying from database properly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-not-displaying-from-database-properly/m-p/822356#M324731</link>
    <description>&lt;P&gt;You cannot run this code however I have general question&lt;/P&gt;
&lt;P&gt;data Month_END_01;&lt;BR /&gt;set Month_End_END_1;&lt;BR /&gt;as_of_date = put(as_of_date,datetime.);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data is supposed to display a datetime in a field called as_of_date.&amp;nbsp; Instead it displays a series of characters ***&amp;nbsp; I tried converting using&amp;nbsp;as_of_date = put(as_of_date,datetime.);&amp;nbsp; however it simply converts it to a numeric with no data at all.&amp;nbsp; Is there a solution?&amp;nbsp; I cannot replicate this so I cannot display a code example&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2022 20:54:43 GMT</pubDate>
    <dc:creator>Q1983</dc:creator>
    <dc:date>2022-07-08T20:54:43Z</dc:date>
    <item>
      <title>Date not displaying from database properly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-not-displaying-from-database-properly/m-p/822356#M324731</link>
      <description>&lt;P&gt;You cannot run this code however I have general question&lt;/P&gt;
&lt;P&gt;data Month_END_01;&lt;BR /&gt;set Month_End_END_1;&lt;BR /&gt;as_of_date = put(as_of_date,datetime.);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data is supposed to display a datetime in a field called as_of_date.&amp;nbsp; Instead it displays a series of characters ***&amp;nbsp; I tried converting using&amp;nbsp;as_of_date = put(as_of_date,datetime.);&amp;nbsp; however it simply converts it to a numeric with no data at all.&amp;nbsp; Is there a solution?&amp;nbsp; I cannot replicate this so I cannot display a code example&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 20:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-not-displaying-from-database-properly/m-p/822356#M324731</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2022-07-08T20:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date not displaying from database properly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-not-displaying-from-database-properly/m-p/822358#M324732</link>
      <description>&lt;P&gt;Are there ERRORs or WARNINGs in the log? If yes, what is the exact word-for-word message?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does PROC CONTENTS say the data type (numeric or character) is variable AS_OF_DATE in data set Month_end_END_1? What does PROC CONTENTS say the format is for variable AS_OF_DATE in data set Month_end_END_1? What is the exact appearance of the values of this variable in data set Month_End_END_1?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you try this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;as_of_date1 = put(as_of_date,datetime.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lastly, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5629"&gt;@Q1983&lt;/a&gt;, I asked you many of these questions in your &lt;A href="https://communities.sas.com/t5/SAS-Programming/Truncated-Date-in-dataset/m-p/822167" target="_self"&gt;earlier thread&lt;/A&gt;, and no answer was provided. Please provide the answers. We can't help you without answers.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 21:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-not-displaying-from-database-properly/m-p/822358#M324732</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-08T21:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date not displaying from database properly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-not-displaying-from-database-properly/m-p/822360#M324734</link>
      <description>&lt;P&gt;You cannot convert into the same named variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What is the original type and format of the variable as_of_date?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;E.g. Character format=$10 or Numeric format=Datetime22.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 21:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-not-displaying-from-database-properly/m-p/822360#M324734</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-08T21:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date not displaying from database properly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-not-displaying-from-database-properly/m-p/822372#M324741</link>
      <description>Also what's the database and type of the column in the DB?&lt;BR /&gt;e.g Oracle, Date</description>
      <pubDate>Fri, 08 Jul 2022 21:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-not-displaying-from-database-properly/m-p/822372#M324741</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-08T21:38:37Z</dc:date>
    </item>
  </channel>
</rss>

