<?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: Is there option in PROC COMPARE  not to show difference in Lengths of Var (attributes) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955622#M373197</link>
    <description>&lt;P&gt;You could also just check the SYSINFO macro variable that PROC COMPARE generates and ignore the bits that indicate the variable attribute differences you don't care about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1jbbrf1tztya8n1tju77t35dej9.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1jbbrf1tztya8n1tju77t35dej9.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1736429891580.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103619iCAA19FE6E69F7AB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1736429891580.png" alt="Tom_0-1736429891580.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2025 13:38:27 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-01-09T13:38:27Z</dc:date>
    <item>
      <title>Is there option in PROC COMPARE  not to show difference in Lengths of Var (attributes)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955579#M373187</link>
      <description>&lt;P&gt;I am using the follwing proc compare. But I am seeing the difference&amp;nbsp; of Variable length in Result viewer, can we avoid with any option or statements. I tried this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc compare base=have comp=want listall ;&lt;BR /&gt;informat _all_;&lt;BR /&gt;format _all_;&lt;BR /&gt;attrib _all_&lt;BR /&gt;label=' ';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 02:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955579#M373187</guid>
      <dc:creator>StudentSASLearn</dc:creator>
      <dc:date>2025-01-09T02:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there option in PROC COMPARE  not to show difference in Lengths of Var (attributes)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955586#M373188</link>
      <description>&lt;PRE&gt;data have;
 length name $ 40;
 set sashelp.class;
run;


&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ods exclude CompareVariables;&lt;/STRONG&gt;&lt;/FONT&gt;
proc compare base=sashelp.class comp=have listall ;
informat _all_;
format _all_;
attrib _all_
label=' ';
run;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2025 03:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955586#M373188</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-01-09T03:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there option in PROC COMPARE  not to show difference in Lengths of Var (attributes)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955587#M373189</link>
      <description>&lt;P&gt;Why would you want that?&lt;/P&gt;
&lt;P&gt;You could exclude that whole part of the output, but then you would miss other information that is printed there.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have(drop=long) want(drop=name rename=(long=name));
  length long $20;
  set sashelp.class;
  long=name;
  output have;
  if _n_=1 then age=9;
  output want;
run;
ods trace on;
ods exclude CompareVariables ;
proc compare data=have compare=want;
run;
ods exclude none;
ods trace off;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2025 03:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955587#M373189</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-01-09T03:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there option in PROC COMPARE  not to show difference in Lengths of Var (attributes)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955589#M373191</link>
      <description>&lt;P&gt;I am comparing the table calculated values done by someone else, variable lengths are not important to compare. I was interested in actual values present in data. when I see so many variables with length differences, it kind of annoying ( I am aware sas presents it for a reason). In this case variable lengths are not important to compare.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 05:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955589#M373191</guid>
      <dc:creator>StudentSASLearn</dc:creator>
      <dc:date>2025-01-09T05:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there option in PROC COMPARE  not to show difference in Lengths of Var (attributes)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955590#M373192</link>
      <description>&lt;P&gt;Thank you Ksharp and Tom. Both given the same answers which worked for me. I don't know How I can accept&amp;nbsp; both as solutions. So I selected first one. Sorry Tom&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 05:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955590#M373192</guid>
      <dc:creator>StudentSASLearn</dc:creator>
      <dc:date>2025-01-09T05:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there option in PROC COMPARE  not to show difference in Lengths of Var (attributes)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955622#M373197</link>
      <description>&lt;P&gt;You could also just check the SYSINFO macro variable that PROC COMPARE generates and ignore the bits that indicate the variable attribute differences you don't care about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1jbbrf1tztya8n1tju77t35dej9.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1jbbrf1tztya8n1tju77t35dej9.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1736429891580.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103619iCAA19FE6E69F7AB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1736429891580.png" alt="Tom_0-1736429891580.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 13:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-option-in-PROC-COMPARE-not-to-show-difference-in/m-p/955622#M373197</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-01-09T13:38:27Z</dc:date>
    </item>
  </channel>
</rss>

