<?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: PROC SQL create specific data type and insert data to table in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541337#M7348</link>
    <description>&lt;P&gt;I have import the csv file and store in WORK library, for move to Neteza libray in next step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have change to single dot in my statement but result still same, NOT any data have insert to new table.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 10:24:41 GMT</pubDate>
    <dc:creator>Thanakid</dc:creator>
    <dc:date>2019-03-08T10:24:41Z</dc:date>
    <item>
      <title>PROC SQL create specific data type and insert data to table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541328#M7345</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am newbie for SAS EG, May I need you guy help me about issue,&lt;/P&gt;&lt;P&gt;I would like to create the table with specific the data type, then insert the data as select from once table use PROC SQL with Neteza DB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result create table is working but NOT any data insert to that new table as I have created, my code as below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CONNECT TO NETEZZA AS CON1(DATABASE=SAS_ADM SERVER="192.168.00.00" AUTHDOMAIN= "ABC");
EXECUTE(

		
		CREATE TABLE SAS_ADM..TK_TEMP3 &lt;BR /&gt;                ( 
                      Center        NATIONAL CHARACTER VARYING(10),
                      FoundSentence NATIONAL CHARACTER VARYING(255)
                );

  	    INSERT INTO SAS_ADM..TK_TEMP3
		SELECT Center, 
                FoundSentence
 	    FROM WORK.FILE_TK;
		
		) BY CON1;
		DISCONNECT FROM CON1;
QUIT; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 10:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541328#M7345</guid>
      <dc:creator>Thanakid</dc:creator>
      <dc:date>2019-03-08T10:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL create specific data type and insert data to table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541335#M7347</link>
      <description>&lt;P&gt;Please note that a single dot is used to separate library from dataset. And if you want to load data from Netezza, why do have "from work.file_tk" in your sql-statement?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 09:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541335#M7347</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-03-08T09:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL create specific data type and insert data to table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541337#M7348</link>
      <description>&lt;P&gt;I have import the csv file and store in WORK library, for move to Neteza libray in next step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have change to single dot in my statement but result still same, NOT any data have insert to new table.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 10:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541337#M7348</guid>
      <dc:creator>Thanakid</dc:creator>
      <dc:date>2019-03-08T10:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL create specific data type and insert data to table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541339#M7349</link>
      <description>&lt;P&gt;You are passing an SQL query directly to Netezza to process - it knows nothing about SAS WORK datasets. You have to move the SAS dataset to Netezza before loading it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A better way to load the data would be to create a Netezza connection with a LIBNAME statement and then use PROC DATASETS with an APPEND statement to insert the SAS rows into the Netezza table.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 10:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541339#M7349</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-03-08T10:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL create specific data type and insert data to table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541349#M7354</link>
      <description>&lt;P&gt;Would a better process not be to import the CSV directly into Netezza?&amp;nbsp; Having an intermediary stage of loading to one software just to pass to another is adding an unnecessary layer of complexity and potential issues.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 10:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541349#M7354</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-08T10:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL create specific data type and insert data to table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541627#M7391</link>
      <description>&lt;P&gt;The method in SAS is pretty simple:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname netezza netezza noprompt="&amp;lt;put your connection string here&amp;gt;";

proc datasets library = netezza;
  append base = netezza.MyTable data = work.MySASTable;
run;
quit; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;If you want a Netezza-only solution then I suggest you use a Netezza forum.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 21:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541627#M7391</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-03-08T21:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL create specific data type and insert data to table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541876#M7428</link>
      <description>&lt;P&gt;I'am user in my company, I have limitation access to environment Netteza and i know this solution to prepare CSV data into Netteza first and read completed table via SAS EG, that why I import the CSV file via SAS EG only. maybe I will try to talk with person who responsibility with Netteza for import this CSV file.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 02:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541876#M7428</guid>
      <dc:creator>Thanakid</dc:creator>
      <dc:date>2019-03-11T02:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL create specific data type and insert data to table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541883#M7429</link>
      <description>&lt;P&gt;I follow this suggestion, it working!!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 05:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541883#M7429</guid>
      <dc:creator>Thanakid</dc:creator>
      <dc:date>2019-03-11T05:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL create specific data type and insert data to table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541892#M7430</link>
      <description>&lt;P&gt;This is solution&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 06:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-create-specific-data-type-and-insert-data-to-table/m-p/541892#M7430</guid>
      <dc:creator>Thanakid</dc:creator>
      <dc:date>2019-03-11T06:35:07Z</dc:date>
    </item>
  </channel>
</rss>

