<?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: Export a DB in an excel file - format &amp;quot;time&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645242#M192858</link>
    <description>excuse me.... the ora format in wrong .... I used "time."   ...  "timew," was an attempt !!! &lt;BR /&gt;</description>
    <pubDate>Tue, 05 May 2020 11:08:16 GMT</pubDate>
    <dc:creator>Tecla1</dc:creator>
    <dc:date>2020-05-05T11:08:16Z</dc:date>
    <item>
      <title>Export a DB in an excel file - format "time"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645228#M192853</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I have a little problem but I'm not able to resolve it. I need to export a DB with columns with format "Time", the excel file don't keep the right format but take the "date" format, so I have to change the format in all columns....&lt;/P&gt;
&lt;P&gt;Please, can you give me some suggestion?&lt;/P&gt;
&lt;P&gt;Many tnks for you kindly help.&lt;/P&gt;
&lt;P&gt;Tecla&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 10:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645228#M192853</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2020-05-05T10:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export a DB in an excel file - format "time"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645233#M192855</link>
      <description>&lt;P&gt;This works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
mytime = time();
format mytime time8.;
run;

proc export
  data=test
  file='/folders/myfolders/mytime.xlsx'
  dbms=xlsx
  replace
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;at least the value &lt;EM&gt;is&lt;/EM&gt; a time value in the spreadsheet, just that the format is shorter (equivalent to time5) when opening the XLSX in LibreOffice.&lt;/P&gt;
&lt;P&gt;Please post the code with which you create the time variable in SAS, and how you export it.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 10:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645233#M192855</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-05T10:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export a DB in an excel file - format "time"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645241#M192857</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;
&lt;P&gt;tnk for your replay, as your request:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Vsf_accounting_vpn_g;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; QUERY_FOR_FILTER_FOR_VSF_ACCOUNT;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ORA_PRIMO_COLL ORA_LAST_COLL &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;TIMEW.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; GG_PRIMO_COLL GG_LAST_COLL &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;DDMMYY10.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#008000"&gt;/* Ora prima connessione */&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ORA_PRIMO_COLL = timepart(TIMESTAMP_CONNESSIONE);&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#008000"&gt;/* Ora ultima connessione */&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ORA_LAST_COLL = timepart(TIMESTAMP_DISCONNESSIONE);&lt;/P&gt;
&lt;P&gt;GG_PRIMO_COLL = datepart(TIMESTAMP_CONNESSIONE);&lt;/P&gt;
&lt;P&gt;GG_LAST_COLL = datepart(TIMESTAMP_DISCONNESSIONE);&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;PROC&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;EXPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= rwork.Vsf_accounting_vpn_g&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;OUTFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"\\grpi-sas-dgc-vip.cariprpc.it\SASDGSWRETE_READ_WRITE\20_dati\report\prova.xlsx"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=EXCEL &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;REPLACE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; SHEET=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"PF_005"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 11:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645241#M192857</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2020-05-05T11:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export a DB in an excel file - format "time"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645242#M192858</link>
      <description>excuse me.... the ora format in wrong .... I used "time."   ...  "timew," was an attempt !!! &lt;BR /&gt;</description>
      <pubDate>Tue, 05 May 2020 11:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645242#M192858</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2020-05-05T11:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export a DB in an excel file - format "time"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645252#M192862</link>
      <description>&lt;P&gt;Use dbms=xlsx instead of dbms=excel.&lt;/P&gt;
&lt;P&gt;Note that Excel does not make a distinction between date and time values internally. Times are stored as fractions of days (not as counts of seconds like SAS and database systems do). 0.5 is the time of 12:00:00, but also the timestamp 1899-12-31:12:00:00 in Excel parlance.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 11:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-a-DB-in-an-excel-file-format-quot-time-quot/m-p/645252#M192862</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-05T11:56:18Z</dc:date>
    </item>
  </channel>
</rss>

