<?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: Caps affecting summarization of variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759078#M239806</link>
    <description>Hi Jim,&lt;BR /&gt;&lt;BR /&gt;I've changed the value of 'y' to 'Y' and get the desired/correct results. My questions lies with why am I getting different values with the capitalization of the queried value?</description>
    <pubDate>Tue, 03 Aug 2021 16:47:34 GMT</pubDate>
    <dc:creator>G_I_Jeff</dc:creator>
    <dc:date>2021-08-03T16:47:34Z</dc:date>
    <item>
      <title>Caps affecting summarization of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759055#M239794</link>
      <description>&lt;P&gt;I should probably know this, but I cannot see where the difference is coming from. I run the exact same query both in all caps and lower caps. I get different results on my sum variable:&lt;/P&gt;
&lt;PRE&gt;PROC SQL;                                             
 SELECT DISTINCT ZDATE FORMAT DATE9.,                 
        SUM(DDSUSIZE) AS TAPE_SUM FORMAT COMMA20.     
 FROM PDB1.NFCPLEX_TAPE                               
 WHERE DACTIVE='Y' OR ZDATE&amp;lt;=INTNX('DAYS',DSEXPDT,30);
QUIT;                                                 &lt;/PRE&gt;
&lt;P&gt;Capitalized query produces TAPE_SUM of 406,345,495,834,624&lt;/P&gt;
&lt;P&gt;Lower case query produces TAPE_SUM of 332,601,289,578,496&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: This query is being run on a z/OS mainframe platform. I thought that all variable values were stored as capital EBCDIC characters. If I change the 'y' to uppercase when running query in all lowercase I get the 406,345,495,834,624 summed value. If I run the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;                 
 select distinct dactive  
   from pdb1.nfcplex_tape;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get either blank or Y values returned.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 15:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759055#M239794</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2021-08-03T15:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Caps affecting summarization of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759066#M239801</link>
      <description>Have you tried adding the UPCASE function?&lt;BR /&gt;&lt;BR /&gt; WHERE UPCASE(DACTIVE)='Y' &lt;BR /&gt;&lt;BR /&gt;Jim &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Aug 2021 16:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759066#M239801</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-03T16:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Caps affecting summarization of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759078#M239806</link>
      <description>Hi Jim,&lt;BR /&gt;&lt;BR /&gt;I've changed the value of 'y' to 'Y' and get the desired/correct results. My questions lies with why am I getting different values with the capitalization of the queried value?</description>
      <pubDate>Tue, 03 Aug 2021 16:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759078#M239806</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2021-08-03T16:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Caps affecting summarization of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759079#M239807</link>
      <description>&lt;P&gt;Capital Y is considered different than lowercase y&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 16:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759079#M239807</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-03T16:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Caps affecting summarization of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759085#M239808</link>
      <description>Paige Miller, I agree 100%. But why am I getting a summarization value when I run the query in lower caps if all the values of DACTIVE are capital Y?</description>
      <pubDate>Tue, 03 Aug 2021 16:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759085#M239808</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2021-08-03T16:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Caps affecting summarization of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759092#M239813</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19745"&gt;@G_I_Jeff&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Paige Miller, I agree 100%. But why am I getting a summarization value when I run the query in lower caps if all the values of DACTIVE are capital Y?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, maybe they aren't.&amp;nbsp; Remember that the display settings on a 3270 terminal emulator can be set such that 'y' will display as 'Y'.&amp;nbsp; Not sure if that's the case here, but it could be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried running a Proc Freq on DACTIVE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 17:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759092#M239813</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-03T17:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Caps affecting summarization of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759096#M239815</link>
      <description>&lt;P&gt;Is there a format applied to the variable, according to PROC CONTENTS?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 17:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Caps-affecting-summarization-of-variable/m-p/759096#M239815</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-03T17:27:50Z</dc:date>
    </item>
  </channel>
</rss>

