<?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 Append - different lengths on BASE and DATA files (BASE 30 DATA 1). in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432992#M107296</link>
    <description>Thank you, All the warnings went off. Is there any option for "Variable has been defined as both character and numeric" error ? while loading into Oracle DB.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ana</description>
    <pubDate>Thu, 01 Feb 2018 03:55:41 GMT</pubDate>
    <dc:creator>SASAna</dc:creator>
    <dc:date>2018-02-01T03:55:41Z</dc:date>
    <item>
      <title>PROC Append - different lengths on BASE and DATA files (BASE 30 DATA 1).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432953#M107281</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am working on loading SAS dataset (400 attributes)&amp;nbsp; into Oracle table (350 attributes).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the proc append -&amp;nbsp; force nowarn in my code and still getting the Warning&amp;nbsp; for all of the records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any better suggestion than setting up the length for each individual attributes in the data step? (SAS variable naming is same as Oracle namings)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ana&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 00:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432953#M107281</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2018-02-01T00:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Append - different lengths on BASE and DATA files (BASE 30 DATA 1).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432968#M107288</link>
      <description>&lt;P&gt;option VARLENCHK=NOWARN removes warnings when copying to SAS datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you could go through a SAS table or a SAS view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data F_DATA.ORATAB; 
  VAR1='11';
run;
 
data SASTAB; 
  VAR1='11111111111111'; 
run;

option varlenchk=nowarn;

data TMP; 
  if 0 then set F_DATA.ORATAB; *use oracle lengths;
  set SASTAB; 
run;
                                               
proc append base=F_DATA.ORATAB data=TMP force nowarn; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 02:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432968#M107288</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-01T02:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Append - different lengths on BASE and DATA files (BASE 30 DATA 1).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432976#M107290</link>
      <description>&lt;P&gt;Thanks for the answer.&amp;nbsp; option VARLENCHK=NOWARN; didnt work on these warnings of the lengths.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we have to explicitly set the Oracle lengths to all the SAS variables? as I have around 350 variables to work with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ana&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 02:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432976#M107290</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2018-02-01T02:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Append - different lengths on BASE and DATA files (BASE 30 DATA 1).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432978#M107292</link>
      <description>&lt;P&gt;Did you even read my reply, or the documentation for this option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This option works within SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;             
data F_DATA.ORATAB;
  VAR1='11';
run;
 
data SASTAB; 
  VAR1='11111111111111'; 
run;

proc append base=F_DATA.ORATAB data=SASTAB force nowarn; 
run; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;generates this warning:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;WARNING: Variable VAR1 has different lengths on BASE and DATA files (BASE 2 DATA 14).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
option varlenchk=nowarn;

data TMP; 
  if 0 then set F_DATA.ORATAB; 
  set SASTAB; 
run;
                                               
proc append base=F_DATA.ORATAB data=TMP force nowarn; 
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;generates no warning whatsoever.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please at least *try* to help yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 03:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432978#M107292</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-01T03:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Append - different lengths on BASE and DATA files (BASE 30 DATA 1).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432992#M107296</link>
      <description>Thank you, All the warnings went off. Is there any option for "Variable has been defined as both character and numeric" error ? while loading into Oracle DB.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ana</description>
      <pubDate>Thu, 01 Feb 2018 03:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432992#M107296</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2018-02-01T03:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Append - different lengths on BASE and DATA files (BASE 30 DATA 1).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432996#M107298</link>
      <description>&lt;P&gt;No there isn't. And there can't be. Is you sas numeric variable a date?&amp;nbsp;or an integer?&lt;/P&gt;
&lt;P&gt;You must have the variable types aligned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 04:14:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/432996#M107298</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-01T04:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Append - different lengths on BASE and DATA files (BASE 30 DATA 1).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/433231#M107388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of the attributes needs character to DATE conversations. and character to numeric conversions to load into DB.&amp;nbsp; I am currently doing all the needed conversions in PROC SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ana&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 19:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/433231#M107388</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2018-02-01T19:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Append - different lengths on BASE and DATA files (BASE 30 DATA 1).</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/433308#M107406</link>
      <description>&lt;P&gt;Yes, that's one way.&lt;/P&gt;
&lt;P&gt;While you're at it, ensure all the variables in all the programs and all the tables (SAS and Oracle) have the correct names, types and lengths.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will save you that kind of headache, and many others.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 22:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Append-different-lengths-on-BASE-and-DATA-files-BASE-30/m-p/433308#M107406</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-01T22:29:37Z</dc:date>
    </item>
  </channel>
</rss>

