<?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 timestamp to &amp;quot;yyyy-mm-dd hh:mm:ss.sss&amp;quot; without T in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-convert-timestamp-to-quot-yyyy-mm-dd-hh-mm-ss-sss-quot/m-p/626412#M10091</link>
    <description>&lt;P&gt;It sounds like you are using a STRING column in Hive.&lt;/P&gt;
&lt;P&gt;If you are on .12 or higher, this is not the recommended approach.&lt;/P&gt;
&lt;P&gt;Use a TIMESTAMP data type instead, and SAS/ACCESS should be able to map it, thus no need to specify a SAS ISO datetime format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;STRONG&gt;Highlighting New Hive .12 Data Types&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV id="n0vyyusgocgk0nn1mjnd0xhe67vj" class="xis-topicContent"&gt;
&lt;DIV id="n1uwcu3m07ebctn1w7hk5wn9dmn6" class="xis-paragraph"&gt;This chapter presents considerations for sharing data between Hive and SAS. For example, you need to know how to identify the Hive STRING columns that contain DATE, TIME, or TIMESTAMP information. You also need to know how to minimize the length of SAS character columns that are created from Hive STRING columns. Where you use the VARCHAR, DATE, and TIMESTAMP data types that are available in Hive .12 and later, you optimize sharing data between Hive and SAS. For example, the SASFMT table properties that are described later are not needed for Hive columns that are declared VARCHAR, DATE, and TIMESTAMP."&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 21 Feb 2020 08:36:04 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2020-02-21T08:36:04Z</dc:date>
    <item>
      <title>How to convert timestamp to "yyyy-mm-dd hh:mm:ss.sss" without T</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-convert-timestamp-to-quot-yyyy-mm-dd-hh-mm-ss-sss-quot/m-p/626409#M10090</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I want to export SAS data to Hive.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Tpye timestamp in hive is "yyyy-mm-dd hh:mm:ss.sss",but when I used format&amp;nbsp;E8601DTw.d in SAS,it appeared as&lt;/P&gt;&lt;P&gt;"yyyy-mm-ddT hh:mm:ss.sss",how can I deal with it without "T",or do you have other better solutions?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I really appreciate for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 08:14:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-convert-timestamp-to-quot-yyyy-mm-dd-hh-mm-ss-sss-quot/m-p/626409#M10090</guid>
      <dc:creator>zdk</dc:creator>
      <dc:date>2020-02-21T08:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert timestamp to "yyyy-mm-dd hh:mm:ss.sss" without T</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-convert-timestamp-to-quot-yyyy-mm-dd-hh-mm-ss-sss-quot/m-p/626412#M10091</link>
      <description>&lt;P&gt;It sounds like you are using a STRING column in Hive.&lt;/P&gt;
&lt;P&gt;If you are on .12 or higher, this is not the recommended approach.&lt;/P&gt;
&lt;P&gt;Use a TIMESTAMP data type instead, and SAS/ACCESS should be able to map it, thus no need to specify a SAS ISO datetime format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;STRONG&gt;Highlighting New Hive .12 Data Types&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV id="n0vyyusgocgk0nn1mjnd0xhe67vj" class="xis-topicContent"&gt;
&lt;DIV id="n1uwcu3m07ebctn1w7hk5wn9dmn6" class="xis-paragraph"&gt;This chapter presents considerations for sharing data between Hive and SAS. For example, you need to know how to identify the Hive STRING columns that contain DATE, TIME, or TIMESTAMP information. You also need to know how to minimize the length of SAS character columns that are created from Hive STRING columns. Where you use the VARCHAR, DATE, and TIMESTAMP data types that are available in Hive .12 and later, you optimize sharing data between Hive and SAS. For example, the SASFMT table properties that are described later are not needed for Hive columns that are declared VARCHAR, DATE, and TIMESTAMP."&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Feb 2020 08:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-convert-timestamp-to-quot-yyyy-mm-dd-hh-mm-ss-sss-quot/m-p/626412#M10091</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2020-02-21T08:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert timestamp to "yyyy-mm-dd hh:mm:ss.sss" without T</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-convert-timestamp-to-quot-yyyy-mm-dd-hh-mm-ss-sss-quot/m-p/626413#M10092</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/305992"&gt;@zdk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you could try to use a picture format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture myfmt (default = 50) low-high='%Y-%0m-%0d %0H:%0M:%0S' (datatype=datetime);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2020 10:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-convert-timestamp-to-quot-yyyy-mm-dd-hh-mm-ss-sss-quot/m-p/626413#M10092</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-21T10:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert timestamp to "yyyy-mm-dd hh:mm:ss.sss" without T</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-convert-timestamp-to-quot-yyyy-mm-dd-hh-mm-ss-sss-quot/m-p/626435#M10093</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe your own format:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
  picture myTimestamp (default=19)
          other='%Y-%0m-%0d %0H:%0M:%0S' (datatype=datetime);
run;


data test;
  a = datetime();
  format a myTimestamp.;
run;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 10:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-convert-timestamp-to-quot-yyyy-mm-dd-hh-mm-ss-sss-quot/m-p/626435#M10093</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-02-21T10:36:56Z</dc:date>
    </item>
  </channel>
</rss>

