<?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 Suppress WARNING during BULKLOAD insert in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390265#M66118</link>
    <description>The Target table structure&lt;BR /&gt;CREATE TABLE CLASS&lt;BR /&gt;(&lt;BR /&gt;YEARMONTH INTEGER NOT NULL,&lt;BR /&gt;NAME CHARACTER VARYING(8),&lt;BR /&gt;SEX CHARACTER(1),&lt;BR /&gt;AGE DOUBLE PRECISION,&lt;BR /&gt;HEIGHT DOUBLE PRECISION,&lt;BR /&gt;WEIGHT DOUBLE PRECISION&lt;BR /&gt;)&lt;BR /&gt;DISTRIBUTE ON RANDOM;</description>
    <pubDate>Wed, 23 Aug 2017 14:26:52 GMT</pubDate>
    <dc:creator>HariPrasad2005</dc:creator>
    <dc:date>2017-08-23T14:26:52Z</dc:date>
    <item>
      <title>PROC SQL Suppress WARNING during BULKLOAD insert</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390249#M66115</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am facing this wierd issue with PROC SQL, The below code is&amp;nbsp;working fine in SAS 9.3 Windows server, We are migarting to SAS 9.4 Linux. The same code is producing WARNING and the warning seems inappropriate and its repeating for every single record it inserts. Which is causing the log file size to increase exponentically&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone else faced similar issue and found a solution kindly share. Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(APPEND2NETEZZATABLE):   Proc SQL NoPrint ;
MPRINT(APPEND2NETEZZATABLE):   Select case when strip(upcase(name)) eq strip(upcase("yearmonth")) and type ne 'char' then
strip("201706 as yearmonth") when strip(upcase(name)) eq strip(upcase("yearmonth")) and type eq 'char' then strip("'201706' as
yearmonth") when put(name,$a2ntfmt.) ne 'Y' then case type when 'char' then catx(' ',"''",CatS('Length=',Length),"As",name) else
catx(' ',". As",name) end else case type when 'char' then catx(' ',name,CatS('Length=',Length),"As",name) else name end end as name
into :A2NT_SRC_COLUMNS Separated by ',' From A2NT_TGT_COLUMNS ;
MPRINT(APPEND2NETEZZATABLE):   Insert Into NZ.CLASS ( BULKLOAD=YES BL_DELIMITER=128
BL_DATAFILE="/apps/sas/sasdata/svc/rsk/align_code/logs/bulkload/CLASS1819056786.dat" BL_OPTIONS="fillrecord true ignorezero true
CtrlChars true maxerrors 1 logdir '/apps/sas/sasdata/svc/rsk/align_code/logs/bulkload/' " BL_USE_PIPE=NO BL_DELETE_DATAFILE=YES )
Select 201706 as yearmonth,NAME Length=8 As NAME,SEX Length=1 As SEX,AGE,HEIGHT,WEIGHT From SASHELP.CLASS ;
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column NAME
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column NAME
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column NAME
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column NAME
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column NAME
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column NAME
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column NAME
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column NAME
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column NAME
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column NAME
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
WARNING: Character expression will be truncated by the engine when assigned to character column SEX
NOTE: 19 rows were inserted into NZ.CLASS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390249#M66115</guid>
      <dc:creator>HariPrasad2005</dc:creator>
      <dc:date>2017-08-23T14:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Suppress WARNING during BULKLOAD insert</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390259#M66116</link>
      <description>&lt;P&gt;Erm, not sure why your putting SAS length statements in there:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;&lt;SPAN class="token statement"&gt;Select&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;201706&lt;/SPAN&gt; as yearmonth&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;NAME &lt;SPAN class="token function"&gt;Length&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;8&lt;/SPAN&gt; As NAME&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;SEX &lt;SPAN class="token function"&gt;Length&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; As SEX&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;AGE&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;HEIGHT&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;WEIGHT&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;From&lt;/SPAN&gt; SASHELP&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;CLASS&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/LI-CODE&gt;
&lt;P&gt;Assuming that table your inserting into is long enough to hold the data then:&lt;/P&gt;
&lt;PRE&gt;select 201706,NAME,SEX,AGE,HEIGHT,WEIGHT from SASHELP.CLASS;&lt;/PRE&gt;
&lt;P&gt;Should work fine. &amp;nbsp;Its hard to tell as cannot see the table this is being inserted into.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390259#M66116</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-23T14:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Suppress WARNING during BULKLOAD insert</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390263#M66117</link>
      <description>&lt;P&gt;The initial code was with out the length option. I thought setting the length of the column matching with the target table length will suppress the warning. But no luck. The WARNING still pops up for every record &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390263#M66117</guid>
      <dc:creator>HariPrasad2005</dc:creator>
      <dc:date>2017-08-23T14:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Suppress WARNING during BULKLOAD insert</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390265#M66118</link>
      <description>The Target table structure&lt;BR /&gt;CREATE TABLE CLASS&lt;BR /&gt;(&lt;BR /&gt;YEARMONTH INTEGER NOT NULL,&lt;BR /&gt;NAME CHARACTER VARYING(8),&lt;BR /&gt;SEX CHARACTER(1),&lt;BR /&gt;AGE DOUBLE PRECISION,&lt;BR /&gt;HEIGHT DOUBLE PRECISION,&lt;BR /&gt;WEIGHT DOUBLE PRECISION&lt;BR /&gt;)&lt;BR /&gt;DISTRIBUTE ON RANDOM;</description>
      <pubDate>Wed, 23 Aug 2017 14:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390265#M66118</guid>
      <dc:creator>HariPrasad2005</dc:creator>
      <dc:date>2017-08-23T14:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Suppress WARNING during BULKLOAD insert</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390658#M66142</link>
      <description>Are your shure that nothing else have changed, like global system/libname options, dbms upgrades, target table definition...?</description>
      <pubDate>Thu, 24 Aug 2017 15:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390658#M66142</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-24T15:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Suppress WARNING during BULKLOAD insert</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390673#M66143</link>
      <description>&lt;P&gt;Thanks everyone, There is a hot fix for this issue. I think this issue is specifically related to NETEZZA database BULKLOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/60/273.html" target="_blank"&gt;http://support.sas.com/kb/60/273.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Hari Prasad T&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 16:12:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Suppress-WARNING-during-BULKLOAD-insert/m-p/390673#M66143</guid>
      <dc:creator>HariPrasad2005</dc:creator>
      <dc:date>2017-08-24T16:12:18Z</dc:date>
    </item>
  </channel>
</rss>

