<?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 proc appenmd-different lengths in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-appenmd-different-lengths/m-p/806068#M317549</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am using proc append.&lt;/P&gt;
&lt;P&gt;I get warning "WARNING: Variable OR has different lengths on BASE and DATA files&amp;nbsp; ."&lt;/P&gt;
&lt;P&gt;The more serios problem is that the length of variable OR is not enough and I cannot see the full name on output.&lt;/P&gt;
&lt;P&gt;Any solution please?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro RRR1(CAT);
title "&amp;amp;CAT.";
proc sql;
create table temp as
select "&amp;amp;CAT." as OR   ,
       sum(&amp;amp;CAT. ) as Nr_yes,
	   sum(case when &amp;amp;CAT. ne 1 then 1 else 0 end ) as Nr_No 
from  ttt
;
quit;

proc append base=Wanted  data=temp force  nowarn;
run;
%mend;
%RRR1(CAT=X1);
%RRR1(CAT=X2)
%RRR1(CAT=X3)
%RRR1(CAT=X4)
 
title;
proc print data=wanted noobs;run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Apr 2022 14:23:15 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2022-04-05T14:23:15Z</dc:date>
    <item>
      <title>proc appenmd-different lengths</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-appenmd-different-lengths/m-p/806068#M317549</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am using proc append.&lt;/P&gt;
&lt;P&gt;I get warning "WARNING: Variable OR has different lengths on BASE and DATA files&amp;nbsp; ."&lt;/P&gt;
&lt;P&gt;The more serios problem is that the length of variable OR is not enough and I cannot see the full name on output.&lt;/P&gt;
&lt;P&gt;Any solution please?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro RRR1(CAT);
title "&amp;amp;CAT.";
proc sql;
create table temp as
select "&amp;amp;CAT." as OR   ,
       sum(&amp;amp;CAT. ) as Nr_yes,
	   sum(case when &amp;amp;CAT. ne 1 then 1 else 0 end ) as Nr_No 
from  ttt
;
quit;

proc append base=Wanted  data=temp force  nowarn;
run;
%mend;
%RRR1(CAT=X1);
%RRR1(CAT=X2)
%RRR1(CAT=X3)
%RRR1(CAT=X4)
 
title;
proc print data=wanted noobs;run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Apr 2022 14:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-appenmd-different-lengths/m-p/806068#M317549</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-04-05T14:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc appenmd-different lengths</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-appenmd-different-lengths/m-p/806087#M317557</link>
      <description>&lt;P&gt;Make sure that your base data set has the longest length ever to occur in any of your data you intend to append.&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>Tue, 05 Apr 2022 14:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-appenmd-different-lengths/m-p/806087#M317557</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-05T14:56:41Z</dc:date>
    </item>
  </channel>
</rss>

