<?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: Asisst with error on SUM summary function &amp;amp; columns not found in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746025#M233968</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/384565"&gt;@sabella_btpg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;here you go..&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="sabella_btpg_0-1622914608431.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60052i430346612B1429E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sabella_btpg_0-1622914608431.png" alt="sabella_btpg_0-1622914608431.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cnt = xyz&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;OK, so look at the output of your Proc Contents.&amp;nbsp; There is no column named "Total Pieces" (or "Total_Pieces").&amp;nbsp; You do have a numeric column called "cnt".&amp;nbsp; I think you want to sum on cnt, yes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also do not have a column named Date-21916.&amp;nbsp; You do have a column called Prod_Year (numeric) and another called Prod_Mth (character, 3 positions).&amp;nbsp; You may have to figure out a way to combine Prod_Year and Prod_Mth to create a date.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For now, just working with Prod_Year because we haven't yet figured out a way to combine Prod_Year and Prod_Mth, here's about as much as we can do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table abc_123 as select
    Prod_Year as sub_date,
    "ABCD" as staff,
    "ABCDE" as product_name FORMAT=$CHAR200. LENGTH=200,
    sum(cnt) as xyz,
    0 as afyp
from XXX
where Prod_Year&amp;gt;=YEAR(&amp;amp;stdt)
and Prod_Year&amp;lt;=YEAR(&amp;amp;eddt)
group by 1,2,3
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Why don't you try running the above?&amp;nbsp; Let's see what we get from that.&amp;nbsp; I'm assuming that &amp;amp;stdt and &amp;amp;eddt are valid SAS dates.&amp;nbsp; If they are not valid SAS dates, then the above will not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We may need to look at&amp;nbsp;&amp;amp;stdt and &amp;amp;eddt.&amp;nbsp; Would you please share the values of&amp;nbsp;&amp;amp;stdt and &amp;amp;eddt?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jun 2021 17:59:33 GMT</pubDate>
    <dc:creator>jimbarbour</dc:creator>
    <dc:date>2021-06-05T17:59:33Z</dc:date>
    <item>
      <title>Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746000#M233954</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am a newbie to SAS/SQL coding, needed help on 1 of the coding block as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table abc_123 as select&lt;BR /&gt;Date-21916 format date9. as sub_date,&lt;BR /&gt;"ABCD" as staff,&lt;BR /&gt;"ABCDE" as product_name FORMAT=$CHAR200. LENGTH=200,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum('Total Pieces'n) as xyz,&lt;BR /&gt;0 as afyp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from XXX&lt;BR /&gt;where Date-21916&amp;gt;=&amp;amp;stdt&lt;BR /&gt;and Date-21916&amp;lt;=&amp;amp;eddt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;group by 1,2,3&lt;BR /&gt;;quit;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The error received:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;ERROR: The SUM summary function requires a numeric argument.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;ERROR: The following columns were not found in the contributing tables: Date, 'Total Pieces'n.&lt;/P&gt;&lt;P&gt;Although both of the tables is available in my excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody expertise on this are greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TQ.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 15:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746000#M233954</guid>
      <dc:creator>sabella_btpg</dc:creator>
      <dc:date>2021-06-05T15:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746002#M233955</link>
      <description>&lt;P&gt;Run PROC CONTENTS on XXX to see what variables there are and how they are defined.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=xxx;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The NAME attribute is how you will reference the variable.&amp;nbsp; The TYPE attribute determines whether the variable is a fixed length character string or a floating point number.&amp;nbsp; The LENGTH attribute show how many bytes are used to store the value in the SAS dataset. The FORMAT shows if you have asked SAS to use any special logic when displaying the values of that variable as text, like in a report or just writing the values to the log. The LABEL attribute is just for additional description of the variable. Some reports and browsing tools might default to showing the LABEL instead of the NAME, but in code it is the NAME that you need to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use SUM() the variable has to be numeric in the SAS dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that Excel does NOT have the concept of a variable type. To Excel everything is an individual cell.&amp;nbsp; So it is possible your Excel file has some numeric and some character values in the same column.&amp;nbsp; In which case SAS will have to define the variable create to hold the value in the column as character.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 15:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746002#M233955</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-05T15:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746004#M233957</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, add this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;OPTIONS VALIDVARNAME=V7&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then change your SQL as follows (I'm modifying the column name of "Total Pieces" to Total_Pieces):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table abc_123 as select
    Date-21916 format date9. as sub_date,
    "ABCD" as staff,
    "ABCDE" as product_name FORMAT=$CHAR200. LENGTH=200,
    sum(Total_Pieces) as xyz,
    0 as afyp
from XXX
where Date-21916&amp;gt;=&amp;amp;stdt
and Date-21916&amp;lt;=&amp;amp;eddt
group by 1,2,3
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 15:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746004#M233957</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-06-05T15:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746011#M233958</link>
      <description>I've run the xxx PROC CONTENTS, the 'xyz' type is Num with '8' Len.&lt;BR /&gt;I've also double checked the value of the excel column, it is all in numeric.</description>
      <pubDate>Sat, 05 Jun 2021 16:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746011#M233958</guid>
      <dc:creator>sabella_btpg</dc:creator>
      <dc:date>2021-06-05T16:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746014#M233961</link>
      <description>Done this, no luck, the same error returned. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Sat, 05 Jun 2021 16:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746014#M233961</guid>
      <dc:creator>sabella_btpg</dc:creator>
      <dc:date>2021-06-05T16:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746016#M233962</link>
      <description>&lt;P&gt;I would need to see the output of your Proc Contents.&amp;nbsp; There must be some misspelling or something of the column name in order for this to be happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would need to see this portion of your Proc Contents (below).&amp;nbsp; Would you please post this portion of your Proc Contents results?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jimbarbour_0-1622912729862.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60050i730F07D93C7DBF4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jimbarbour_0-1622912729862.png" alt="jimbarbour_0-1622912729862.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 17:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746016#M233962</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-06-05T17:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746018#M233964</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/384565"&gt;@sabella_btpg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I've run the xxx PROC CONTENTS, the 'xyz' type is Num with '8' Len.&lt;BR /&gt;I've also double checked the value of the excel column, it is all in numeric.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then why are you trying to sum a different variable?&amp;nbsp; use the name the variable from the source dataset inside the SUM() aggregate function call.&amp;nbsp; Place the name you want to call the result in the output dataset after the AS keyword.&amp;nbsp; They could be same.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sum(xyz) as xyz&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 17:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746018#M233964</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-05T17:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746023#M233966</link>
      <description>&lt;P&gt;here you go..&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="sabella_btpg_0-1622914608431.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60052i430346612B1429E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sabella_btpg_0-1622914608431.png" alt="sabella_btpg_0-1622914608431.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cnt = xyz&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 17:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746023#M233966</guid>
      <dc:creator>sabella_btpg</dc:creator>
      <dc:date>2021-06-05T17:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746024#M233967</link>
      <description>that's what i've done, the sum('total pieces'n) is the name taken from the source dataset and i want it to ouput as xyz</description>
      <pubDate>Sat, 05 Jun 2021 17:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746024#M233967</guid>
      <dc:creator>sabella_btpg</dc:creator>
      <dc:date>2021-06-05T17:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746025#M233968</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/384565"&gt;@sabella_btpg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;here you go..&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="sabella_btpg_0-1622914608431.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60052i430346612B1429E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sabella_btpg_0-1622914608431.png" alt="sabella_btpg_0-1622914608431.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cnt = xyz&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;OK, so look at the output of your Proc Contents.&amp;nbsp; There is no column named "Total Pieces" (or "Total_Pieces").&amp;nbsp; You do have a numeric column called "cnt".&amp;nbsp; I think you want to sum on cnt, yes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also do not have a column named Date-21916.&amp;nbsp; You do have a column called Prod_Year (numeric) and another called Prod_Mth (character, 3 positions).&amp;nbsp; You may have to figure out a way to combine Prod_Year and Prod_Mth to create a date.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For now, just working with Prod_Year because we haven't yet figured out a way to combine Prod_Year and Prod_Mth, here's about as much as we can do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table abc_123 as select
    Prod_Year as sub_date,
    "ABCD" as staff,
    "ABCDE" as product_name FORMAT=$CHAR200. LENGTH=200,
    sum(cnt) as xyz,
    0 as afyp
from XXX
where Prod_Year&amp;gt;=YEAR(&amp;amp;stdt)
and Prod_Year&amp;lt;=YEAR(&amp;amp;eddt)
group by 1,2,3
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Why don't you try running the above?&amp;nbsp; Let's see what we get from that.&amp;nbsp; I'm assuming that &amp;amp;stdt and &amp;amp;eddt are valid SAS dates.&amp;nbsp; If they are not valid SAS dates, then the above will not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We may need to look at&amp;nbsp;&amp;amp;stdt and &amp;amp;eddt.&amp;nbsp; Would you please share the values of&amp;nbsp;&amp;amp;stdt and &amp;amp;eddt?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 17:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746025#M233968</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-06-05T17:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746026#M233969</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/384565"&gt;@sabella_btpg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;here you go..&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="sabella_btpg_0-1622914608431.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60052i430346612B1429E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sabella_btpg_0-1622914608431.png" alt="sabella_btpg_0-1622914608431.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cnt = xyz&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean by that? cnt is cnt, period. And I do not see any "Total Pieces" anywhere.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 18:00:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746026#M233969</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-05T18:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Asisst with error on SUM summary function &amp; columns not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746034#M233974</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/384565"&gt;@sabella_btpg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;that's what i've done, the sum('total pieces'n) is the name taken from the source dataset and i want it to ouput as xyz&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So what is the variable type for 'total pieces'n from proc contents on the source data set XXX (or what ever the real name is you used XXX above because the name of the data set is secret)&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 20:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asisst-with-error-on-SUM-summary-function-amp-columns-not-found/m-p/746034#M233974</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-05T20:30:03Z</dc:date>
    </item>
  </channel>
</rss>

