<?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: Formating Time display when proc exporting in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541811#M149671</link>
    <description>&lt;P&gt;Turn it into CHARACTER variable ?&lt;/P&gt;</description>
    <pubDate>Sun, 10 Mar 2019 12:03:47 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-03-10T12:03:47Z</dc:date>
    <item>
      <title>Formating Time display when proc exporting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541721#M149624</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; have;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ID DATE &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DATE9.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TIME &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;TIME.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; date &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;date9.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; time &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;hhmm.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;12 31dec2018 12:10:02&lt;/P&gt;
&lt;P&gt;12 11dec2018 12:11:02&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;EXPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Outfile&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\\Shared\DPMS\have.xls"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= have &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*label /*replace with label name*/&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= EXCELCS &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;REPLACE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SHEET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'DATA'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SERVER&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'saspcff'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="3"&gt;ID&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DATE TIME&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;STRONG&gt;12&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;/&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;31&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;/&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2018&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;/&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;/&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1900&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;STRONG&gt;12&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;/&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;11&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;/&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2018&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;/&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;/&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1900&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see the TIME exports as 1/0/1900.&amp;nbsp; Is there a way to preserve the actual time as a time format.&amp;nbsp; The report will e dumped into another program thus the formats must remain.&amp;nbsp; In this case I want the time to retain as 10:12 and 11:12&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 18:43:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541721#M149624</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2019-03-09T18:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Formating Time display when proc exporting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541722#M149625</link>
      <description>&lt;P&gt;if you use datetime32. for the format will it work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID DATE DATE9. TIME TIME.;
format date datetime32.;
format time hhmm.;
datalines;
 
12 31dec2018 12:10:02
12 11dec2018 12:11:02
;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Mar 2019 19:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541722#M149625</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-03-09T19:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Formating Time display when proc exporting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541811#M149671</link>
      <description>&lt;P&gt;Turn it into CHARACTER variable ?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 12:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541811#M149671</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-03-10T12:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Formating Time display when proc exporting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541839#M149684</link>
      <description>&lt;P&gt;Do you have to use EXCELCS engine?&amp;nbsp; Do you really need to create the old (really old) XLS format?&lt;/P&gt;
&lt;P&gt;Why not just let SAS write the file directly using the XLSX engine?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT Outfile= "c:\downloads\have.xlsx" dbms=xlsx replace
  data=have
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 384px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27813iB2AECE4475BE49C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 17:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541839#M149684</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-03-10T17:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Formating Time display when proc exporting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541842#M149686</link>
      <description>&lt;P&gt;based on the userid I would say that they are dealing with old version of Excel along with the newer versions.&lt;/P&gt;
&lt;P&gt;anyway it should not mater to a good programmer if the requested results are to be in versions of xls, xlsx, csv, txt or even if the file has NDX or AD1 on the end.&amp;nbsp; Data is data, and the process of providing the results are part of the business requirements gathering for the project or task that is to be preformed.&amp;nbsp; Most of the time we as the data results providers need to confirm that the managers, departments or groups that may be backing the request understand what they are asking for.&amp;nbsp; Most of the time they are just picking at the tip of the iceberg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 17:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formating-Time-display-when-proc-exporting/m-p/541842#M149686</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-03-10T17:33:54Z</dc:date>
    </item>
  </channel>
</rss>

