<?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 to convert to sas date format ? in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-convert-to-sas-date-format/m-p/7096#M761</link>
    <description>rather than use PROC IMPORT, try using the SAS/Access to PC FIles facilities in the excel LIBNAME engine. That supports a dataset option SASDATEFMT=.&lt;BR /&gt;
&lt;BR /&gt;
The Help and online Doc declares&lt;BR /&gt;
&lt;BR /&gt;
~~~~~~~~~~~~~SAS Documentation extract ~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;
SASDATEFMT=(data-source-date-column-1='SAS-date-format'&amp;lt;... data-source-date-column-n='SAS-date-format'&amp;gt;)  &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Syntax Description&lt;BR /&gt;
&lt;BR /&gt;
data-source-date-column &lt;BR /&gt;
specifies the name of a date column in a data source table.&lt;BR /&gt;
&lt;BR /&gt;
SAS-date-format &lt;BR /&gt;
specifies a SAS date format that has an equivalent (like-named) informat. For example, DATETIME21.2 is both a SAS format and a SAS informat, so it is a valid value for the SAS-date-format argument.&lt;BR /&gt;
~~~~~~~~end of SAS Documentation extract ~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;
&lt;BR /&gt;
Navigate the "Help and Documentation" menu item (a link into "compiled html help" ) through&lt;BR /&gt;
   SAS Products&lt;BR /&gt;
      SAS/Access&lt;BR /&gt;
         PC Files&lt;BR /&gt;
            Accessing PC Files&lt;BR /&gt;
               The LIBNAME Statement&lt;BR /&gt;
                  SASDATEFMT=&lt;BR /&gt;
On line at&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/acpcref.hlp/a002261342.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/acpcref.hlp/a002261342.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Please can someone show the correct syntax for a link that opens such a page, but also having the tree pane on the left ?&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
    <pubDate>Tue, 26 Feb 2008 09:01:42 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-02-26T09:01:42Z</dc:date>
    <item>
      <title>how to convert to sas date format ?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-convert-to-sas-date-format/m-p/7095#M760</link>
      <description>1. I have date format YYYYMMDD &lt;BR /&gt;
        d1 = 20080416&lt;BR /&gt;
How can I convert it to sas date format such as 16April2008 ?&lt;BR /&gt;
&lt;BR /&gt;
2 .PROC IMPORT OUT= WORK.mydata&lt;BR /&gt;
            DATAFILE= "D:\SAS_data\RawData\test.xls" &lt;BR /&gt;
            DBMS=EXCEL2000 REPLACE;&lt;BR /&gt;
     SHEET="test$"; &lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
RUN;&lt;BR /&gt;
           proc import above, Can I define format of variables in this part ?&lt;BR /&gt;
thanks in advance.</description>
      <pubDate>Sat, 23 Feb 2008 02:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-convert-to-sas-date-format/m-p/7095#M760</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-23T02:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert to sas date format ?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-convert-to-sas-date-format/m-p/7096#M761</link>
      <description>rather than use PROC IMPORT, try using the SAS/Access to PC FIles facilities in the excel LIBNAME engine. That supports a dataset option SASDATEFMT=.&lt;BR /&gt;
&lt;BR /&gt;
The Help and online Doc declares&lt;BR /&gt;
&lt;BR /&gt;
~~~~~~~~~~~~~SAS Documentation extract ~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;
SASDATEFMT=(data-source-date-column-1='SAS-date-format'&amp;lt;... data-source-date-column-n='SAS-date-format'&amp;gt;)  &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Syntax Description&lt;BR /&gt;
&lt;BR /&gt;
data-source-date-column &lt;BR /&gt;
specifies the name of a date column in a data source table.&lt;BR /&gt;
&lt;BR /&gt;
SAS-date-format &lt;BR /&gt;
specifies a SAS date format that has an equivalent (like-named) informat. For example, DATETIME21.2 is both a SAS format and a SAS informat, so it is a valid value for the SAS-date-format argument.&lt;BR /&gt;
~~~~~~~~end of SAS Documentation extract ~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;
&lt;BR /&gt;
Navigate the "Help and Documentation" menu item (a link into "compiled html help" ) through&lt;BR /&gt;
   SAS Products&lt;BR /&gt;
      SAS/Access&lt;BR /&gt;
         PC Files&lt;BR /&gt;
            Accessing PC Files&lt;BR /&gt;
               The LIBNAME Statement&lt;BR /&gt;
                  SASDATEFMT=&lt;BR /&gt;
On line at&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/acpcref.hlp/a002261342.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/acpcref.hlp/a002261342.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Please can someone show the correct syntax for a link that opens such a page, but also having the tree pane on the left ?&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Tue, 26 Feb 2008 09:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/how-to-convert-to-sas-date-format/m-p/7096#M761</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-26T09:01:42Z</dc:date>
    </item>
  </channel>
</rss>

