<?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: Format a date in sas data step in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Format-a-date-in-sas-data-step/m-p/647467#M78609</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/317497"&gt;@xliu1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA work;
	SET work1;
	BY ID;
	Birth_Date=input(Date_of_Birth, yymmdd10.);
	format Birth_Date mmddyy10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2020 14:00:17 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-05-13T14:00:17Z</dc:date>
    <item>
      <title>Format a date in sas data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-a-date-in-sas-data-step/m-p/647463#M78608</link>
      <description>&lt;P&gt;I need to format a date from yyyymmdd to mm/dd/yyyy in sas data step. I have the following sas codes:&lt;/P&gt;&lt;PRE&gt;DATA work;
SET work1;
BY ID;

Birth_Date=input(Date_of_Birth,yyyymmdd.);
format Birth_Date $date10.;
run;&lt;/PRE&gt;&lt;P&gt;the original date is character type, format $8. informat $8.&lt;/P&gt;&lt;P&gt;i keep getting sas error message: The informat YYYYMMDD was not found or could not be loaded&lt;/P&gt;&lt;P&gt;can anyone help with this? thanks&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 13:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-a-date-in-sas-data-step/m-p/647463#M78608</guid>
      <dc:creator>xliu1</dc:creator>
      <dc:date>2020-05-13T13:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Format a date in sas data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-a-date-in-sas-data-step/m-p/647467#M78609</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/317497"&gt;@xliu1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA work;
	SET work1;
	BY ID;
	Birth_Date=input(Date_of_Birth, yymmdd10.);
	format Birth_Date mmddyy10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 14:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-a-date-in-sas-data-step/m-p/647467#M78609</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-13T14:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Format a date in sas data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-a-date-in-sas-data-step/m-p/647471#M78610</link>
      <description>&lt;P&gt;&amp;nbsp;It works out. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 14:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-a-date-in-sas-data-step/m-p/647471#M78610</guid>
      <dc:creator>xliu1</dc:creator>
      <dc:date>2020-05-13T14:07:06Z</dc:date>
    </item>
  </channel>
</rss>

