<?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: Selecting a Hardcoded Date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Selecting-a-Hardcoded-Date/m-p/729380#M226951</link>
    <description>&lt;P&gt;If you want a human-readable date just attach a format, try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;

select '8Mar2021'd as CAMP_DT format=date9. from &amp;lt;TABLE&amp;gt;;

quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Mar 2021 14:01:47 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2021-03-26T14:01:47Z</dc:date>
    <item>
      <title>Selecting a Hardcoded Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Selecting-a-Hardcoded-Date/m-p/729378#M226950</link>
      <description>&lt;P&gt;I have some table inserts i an trying to do and with the insert I am wanting to include a hardcoded date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;select&amp;nbsp;'8Mar2021'd as CAMP_DT from &amp;lt;TABLE&amp;gt;;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This comes back with a numeric date...&lt;BR /&gt;&lt;BR /&gt;Tried:&lt;BR /&gt;datepart('8Mar2021'd) format date9. as CAMP_DT&lt;BR /&gt;&lt;BR /&gt;But that came back in the correct format, wrong date (SAS Origin date 01JAN1960)&lt;BR /&gt;&lt;BR /&gt;Just trying to return 08MAR2021 in this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 13:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Selecting-a-Hardcoded-Date/m-p/729378#M226950</guid>
      <dc:creator>Jyuen204</dc:creator>
      <dc:date>2021-03-26T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a Hardcoded Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Selecting-a-Hardcoded-Date/m-p/729380#M226951</link>
      <description>&lt;P&gt;If you want a human-readable date just attach a format, try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;

select '8Mar2021'd as CAMP_DT format=date9. from &amp;lt;TABLE&amp;gt;;

quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Mar 2021 14:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Selecting-a-Hardcoded-Date/m-p/729380#M226951</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-03-26T14:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a Hardcoded Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Selecting-a-Hardcoded-Date/m-p/729382#M226953</link>
      <description>&lt;P&gt;Ah, I over thought it. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 14:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Selecting-a-Hardcoded-Date/m-p/729382#M226953</guid>
      <dc:creator>Jyuen204</dc:creator>
      <dc:date>2021-03-26T14:04:10Z</dc:date>
    </item>
  </channel>
</rss>

