<?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: Character variable to character date variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Character-variable-to-character-date-variable/m-p/791483#M253526</link>
    <description>&lt;P&gt;Thank you sir.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 16:22:14 GMT</pubDate>
    <dc:creator>bharath86</dc:creator>
    <dc:date>2022-01-21T16:22:14Z</dc:date>
    <item>
      <title>Character variable to character date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-variable-to-character-date-variable/m-p/791466#M253513</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Below is an example of the data I have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both A and B must be character types.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just want to assign a date format to column A so that I get output as column B.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can I do this efficiently without any warnings? Please advise.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="139"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;A&lt;/TD&gt;
&lt;TD width="75"&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;20150107&lt;/TD&gt;
&lt;TD&gt;2015/01/07&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;20150207&lt;/TD&gt;
&lt;TD&gt;2015/02/07&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2015&lt;/TD&gt;
&lt;TD&gt;2015&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 21 Jan 2022 15:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-variable-to-character-date-variable/m-p/791466#M253513</guid>
      <dc:creator>bharath86</dc:creator>
      <dc:date>2022-01-21T15:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Character variable to character date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-variable-to-character-date-variable/m-p/791472#M253516</link>
      <description>&lt;P&gt;Is this what you want?&lt;/P&gt;
&lt;P&gt;If the string in A can be interpretted as YYYYMMDD then make B have the same date printed with slash delimiters.&amp;nbsp; Otherwise just copy A to B.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  date = input(a,??yymmdd8.);
  if not missing(date) then b=put(date,yymmdds10.);
  else b=a;
  drop date;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 16:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-variable-to-character-date-variable/m-p/791472#M253516</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-21T16:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Character variable to character date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-variable-to-character-date-variable/m-p/791483#M253526</link>
      <description>&lt;P&gt;Thank you sir.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 16:22:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-variable-to-character-date-variable/m-p/791483#M253526</guid>
      <dc:creator>bharath86</dc:creator>
      <dc:date>2022-01-21T16:22:14Z</dc:date>
    </item>
  </channel>
</rss>

