<?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 Excel date to SAS date format issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Excel-date-to-SAS-date-format-issue/m-p/688496#M209170</link>
    <description>&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;Im using SAS DI and seem to have a Problem in reading a date value from Excel to SAS. the read Excel date value is in character and when i use the put statement to convert to numeric and Format it with a date9. in SAS DI i get the below error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Numeric format F in PUT function requires a numeric argument. ERROR: Numeric format F in PUT function requires a numeric argument.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this Problem seem to occur only in proc SQL but not in a datastep. Could you please advise as to how i can make this work in proc SQL. Below code snipet is added for reference. Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data A;&lt;/P&gt;&lt;P&gt;format c date9.;&lt;/P&gt;&lt;P&gt;b=' 21273';&lt;/P&gt;&lt;P&gt;c=put(strip(b),10.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select put(strip(b),10.) format = date9.&lt;/P&gt;&lt;P&gt;from A;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2020 12:25:02 GMT</pubDate>
    <dc:creator>Kirtid</dc:creator>
    <dc:date>2020-10-02T12:25:02Z</dc:date>
    <item>
      <title>Excel date to SAS date format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-date-to-SAS-date-format-issue/m-p/688496#M209170</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;Im using SAS DI and seem to have a Problem in reading a date value from Excel to SAS. the read Excel date value is in character and when i use the put statement to convert to numeric and Format it with a date9. in SAS DI i get the below error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Numeric format F in PUT function requires a numeric argument. ERROR: Numeric format F in PUT function requires a numeric argument.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this Problem seem to occur only in proc SQL but not in a datastep. Could you please advise as to how i can make this work in proc SQL. Below code snipet is added for reference. Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data A;&lt;/P&gt;&lt;P&gt;format c date9.;&lt;/P&gt;&lt;P&gt;b=' 21273';&lt;/P&gt;&lt;P&gt;c=put(strip(b),10.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select put(strip(b),10.) format = date9.&lt;/P&gt;&lt;P&gt;from A;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 12:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-date-to-SAS-date-format-issue/m-p/688496#M209170</guid>
      <dc:creator>Kirtid</dc:creator>
      <dc:date>2020-10-02T12:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Excel date to SAS date format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-date-to-SAS-date-format-issue/m-p/688499#M209173</link>
      <description>&lt;P&gt;Use INPUT instead of PUT.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 12:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-date-to-SAS-date-format-issue/m-p/688499#M209173</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-02T12:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Excel date to SAS date format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-date-to-SAS-date-format-issue/m-p/688500#M209174</link>
      <description>Seriously!!.. I spent half my day on this.. Thanks much it worked.</description>
      <pubDate>Fri, 02 Oct 2020 12:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-date-to-SAS-date-format-issue/m-p/688500#M209174</guid>
      <dc:creator>Kirtid</dc:creator>
      <dc:date>2020-10-02T12:45:05Z</dc:date>
    </item>
  </channel>
</rss>

