<?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 can I output a date as a date within a string and not as numeric in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-output-a-date-as-a-date-within-a-string-and-not-as/m-p/854559#M337731</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   AESTDT = '01DEC2021'd;
   MSG = 'Onset Date - '||TRIM(put(AESTDT, date9.))||'- is available';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 19 Jan 2023 13:02:01 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2023-01-19T13:02:01Z</dc:date>
    <item>
      <title>How can I output a date as a date within a string and not as numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-output-a-date-as-a-date-within-a-string-and-not-as/m-p/854557#M337730</link>
      <description>&lt;P&gt;Dear reader, I ran into a small issue..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to output date as a visible date in (in this case DATE9.) format and not as a numeric output.&amp;nbsp; The format of AESTDT is DATE9. As an example 01DEC2021&lt;BR /&gt;&lt;BR /&gt;My code for this example is&amp;nbsp;Code:&amp;nbsp;MSG='Onset Date - '||TRIM(AESTDT)||'- is available';&lt;/P&gt;&lt;P&gt;The output is this:&amp;nbsp;Onset Date - 22974- is available&lt;BR /&gt;&lt;SPAN&gt;But what I want is&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Onset Date - 01DEC2021- is available&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What can I do?&amp;nbsp; &amp;nbsp;Thanks so much for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 12:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-output-a-date-as-a-date-within-a-string-and-not-as/m-p/854557#M337730</guid>
      <dc:creator>JohanK</dc:creator>
      <dc:date>2023-01-19T12:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I output a date as a date within a string and not as numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-output-a-date-as-a-date-within-a-string-and-not-as/m-p/854559#M337731</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   AESTDT = '01DEC2021'd;
   MSG = 'Onset Date - '||TRIM(put(AESTDT, date9.))||'- is available';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jan 2023 13:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-output-a-date-as-a-date-within-a-string-and-not-as/m-p/854559#M337731</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2023-01-19T13:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I output a date as a date within a string and not as numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-output-a-date-as-a-date-within-a-string-and-not-as/m-p/854564#M337734</link>
      <description>&lt;P&gt;Great, this works... Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 13:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-output-a-date-as-a-date-within-a-string-and-not-as/m-p/854564#M337734</guid>
      <dc:creator>JohanK</dc:creator>
      <dc:date>2023-01-19T13:20:46Z</dc:date>
    </item>
  </channel>
</rss>

