<?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: Sas to hive tables ingestion in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598440#M549</link>
    <description>Assuming you're using libname you can use the standard SAS approaches, which include PROC APPEND, a data step or PROC SQL insert.</description>
    <pubDate>Tue, 22 Oct 2019 15:51:11 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-10-22T15:51:11Z</dc:date>
    <item>
      <title>Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598433#M547</link>
      <description>I am ingested one sas dataset into hive .&lt;BR /&gt;Table created in hive&lt;BR /&gt;Now I am trying to append the data to the existing table in hive ,&lt;BR /&gt;Pls let me know how can I proceed.&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Tue, 22 Oct 2019 15:33:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598433#M547</guid>
      <dc:creator>bhaskersuresh</dc:creator>
      <dc:date>2019-10-22T15:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598439#M548</link>
      <description>&lt;P&gt;libname sasdata 'SAS-library';&lt;/P&gt;
&lt;P&gt;libname hdp hadoop user=myusr1 pwd=mypwd1 server='hdpcluster' &amp;nbsp; schema=statsdiv;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc append base=[hdp.Hadoop_Hive_table_name] data=[sasdata.sasdataset_name];&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 15:50:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598439#M548</guid>
      <dc:creator>reprui</dc:creator>
      <dc:date>2019-10-22T15:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598440#M549</link>
      <description>Assuming you're using libname you can use the standard SAS approaches, which include PROC APPEND, a data step or PROC SQL insert.</description>
      <pubDate>Tue, 22 Oct 2019 15:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598440#M549</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-22T15:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598442#M550</link>
      <description>Thanks.&lt;BR /&gt;I tried this but partition variable, value is not reflecting.&lt;BR /&gt;&lt;BR /&gt;Here I am using year_month=201803, hardcoded in code.&lt;BR /&gt;&lt;BR /&gt;Pls suggest,thanks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Oct 2019 15:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598442#M550</guid>
      <dc:creator>bhaskersuresh</dc:creator>
      <dc:date>2019-10-22T15:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598443#M551</link>
      <description>Too vague.</description>
      <pubDate>Tue, 22 Oct 2019 15:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598443#M551</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-22T15:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598448#M552</link>
      <description>Thanks.&lt;BR /&gt;When I use proc append, partition variable value not displaying.&lt;BR /&gt;&lt;BR /&gt;When I use proc SQL insert tablename&lt;BR /&gt;&lt;BR /&gt;Below is sample error. Pls help.&lt;BR /&gt;&lt;BR /&gt;Error: value 496 on the select clause does not match the data type of corresponding column listed after insert table name&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Oct 2019 16:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598448#M552</guid>
      <dc:creator>bhaskersuresh</dc:creator>
      <dc:date>2019-10-22T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598454#M553</link>
      <description>Well, do the types match? What type is the value column on the table you're trying to append and the hive table?</description>
      <pubDate>Tue, 22 Oct 2019 16:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598454#M553</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-22T16:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598460#M554</link>
      <description>&lt;P&gt;Try these commands directly on Hive :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;use &amp;lt;DATABASENAME&amp;gt;;

show create table  &amp;lt;TABLENAME&amp;gt; ;&lt;/PRE&gt;&lt;P&gt;Post the Output , which would be similar as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/**********SAMPLE OUTPUT********************/


1 CREATE TABLE `class`( 
2   `name` string COMMENT 'from deserializer',  
3   `sex` string COMMENT 'from deserializer',  
4   `age` string COMMENT 'from deserializer',  
5   `height` string COMMENT 'from deserializer',  
6   `weight` string COMMENT 'from deserializer') 
7 ROW FORMAT SERDE  
8   'org.apache.hadoop.hive.serde2.OpenCSVSerde'  
9 WITH SERDEPROPERTIES (  
10   'separatorChar'=',')  
11 STORED AS INPUTFORMAT  
12   'org.apache.hadoop.mapred.TextInputFormat'  
13 OUTPUTFORMAT  
14   'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' 
15 LOCATION 
16   'hdfs://&amp;lt;path&amp;gt;' 
17 TBLPROPERTIES ( 
18   'COLUMN_STATS_ACCURATE'='true',  
19   'SAS OS Name'='Linux',  
20   'SAS Version'='9.04.01M4P11092016',  
21   'numFiles'='1',  
22   'numRows'='19',  
23   'rawDataSize'='0',  
24   'totalSize'='644',  
25   'transient_lastDdlTime'='1560450111') 


/*********************************************************/&lt;/PRE&gt;&lt;P&gt;based on how it is configured the output might differ from above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 17:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598460#M554</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-10-22T17:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598463#M555</link>
      <description>Thanks&lt;BR /&gt;In the table I have 600+ fields, and I have to append to monthly. Data for&lt;BR /&gt;each month from jan2018 to till this month.&lt;BR /&gt;&lt;BR /&gt;Seeking help from the experts who worked in sas to hive tables ingestion&lt;BR /&gt;Pls help&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Oct 2019 17:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598463#M555</guid>
      <dc:creator>bhaskersuresh</dc:creator>
      <dc:date>2019-10-22T17:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598645#M556</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sas data type numeric will be changed to double in hive.&lt;/P&gt;&lt;P&gt;sas data type char will be changed to varchar in hive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i created the table in hive with partition year_month=201801 , using the data set in sas.&lt;/P&gt;&lt;P&gt;now i am trying to append data to existing hive table with pratition year_month=201802.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using proc sql insert syntax. getting errors as below like this 20&amp;nbsp; same errors i am getting , when i check fields in sas and hive shown&amp;nbsp; below , pls help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;129 R50_DUNGR&amp;nbsp; &amp;nbsp; NUM 3&amp;nbsp; &amp;nbsp;--- in sas&amp;nbsp;&amp;nbsp;&lt;BR /&gt;`r50_dungr` double,&amp;nbsp; &amp;nbsp; &amp;nbsp; --- in hive&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;182 R50_SIGN_ID&amp;nbsp; &amp;nbsp; Char 1&amp;nbsp; --- in sas&amp;nbsp;&lt;BR /&gt;`r50_sign_id` varchar(1),&amp;nbsp; &amp;nbsp; &amp;nbsp;--- hive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;183 R50_CTOPEN&amp;nbsp; &amp;nbsp; Num 5&amp;nbsp; &amp;nbsp;--- sas&lt;BR /&gt;`r50_ctopen`&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; double,&amp;nbsp; &amp;nbsp; --- in hive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Value 182 on the SELECT clause does not match the data type of the corresponding column listed after the INSERT table name.&lt;BR /&gt;ERROR: Value 183 on the SELECT clause does not match the data type of the corresponding column listed after the INSERT table name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 09:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598645#M556</guid>
      <dc:creator>bhaskersuresh</dc:creator>
      <dc:date>2019-10-23T09:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sas to hive tables ingestion</title>
      <link>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598748#M557</link>
      <description>Show a proc contents on each of the tables please. Or post the exact error the error you're receiving from the log - it usually helps debugging the issue. Alternatively, if you're paying for SAS, you can contact SAS tech support directly and they'll work with the developers and such to get you sorted out. Paid support is a great feature, use it if you have it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 23 Oct 2019 15:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Sas-to-hive-tables-ingestion/m-p/598748#M557</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-23T15:16:35Z</dc:date>
    </item>
  </channel>
</rss>

