<?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 sql error in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/726663#M28144</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/357455"&gt;@ranikeka&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I am using proc sql method for percentage calculation to generate table. First column group A and second column with group B and third column with total of A and B. The following error comes up could you please help how to solve this issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;Create table bytra as select&lt;BR /&gt;100*round(pt1/ys,0.01) as bytrapct,&lt;BR /&gt;100*round(pt2/ys,0.01) as bytrapct,&lt;BR /&gt;100*round(pt1/123, 0.01) as bytrapct,&lt;BR /&gt;&lt;BR /&gt;From file1;&lt;BR /&gt;Quit;&lt;BR /&gt;&lt;BR /&gt;Invalid or missing arguments to the round function have caused the function to return a missing value.&lt;BR /&gt;&lt;BR /&gt;Many thanks for all the help.&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your code as posted will cause a syntax ERROR because of a surplus comma, and once that is corrected, it will cause a WARNING because you try to create the same variable three times.&lt;/P&gt;
&lt;P&gt;The NOTE about missing values is caused by your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 09:45:33 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-03-16T09:45:33Z</dc:date>
    <item>
      <title>Proc sql error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/726659#M28142</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am using proc sql method for percentage calculation to generate table. First column group A and second column with group B and third column with total of A and B. The following error comes up could you please help how to solve this issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;Create table bytra as select&lt;BR /&gt;100*round(pt1/ys,0.01) as bytrapct,&lt;BR /&gt;100*round(pt2/ys,0.01) as bytrapct,&lt;BR /&gt;100*round(pt1/123, 0.01) as bytrapct,&lt;BR /&gt;&lt;BR /&gt;From file1;&lt;BR /&gt;Quit;&lt;BR /&gt;&lt;BR /&gt;Invalid or missing arguments to the round function have caused the function to return a missing value.&lt;BR /&gt;&lt;BR /&gt;Many thanks for all the help.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Mar 2021 09:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/726659#M28142</guid>
      <dc:creator>ranikeka</dc:creator>
      <dc:date>2021-03-16T09:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/726662#M28143</link>
      <description>&lt;P&gt;Please share some exemplary data so we can test your code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Btw. the message says you have missing values in your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 09:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/726662#M28143</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2021-03-16T09:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/726663#M28144</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/357455"&gt;@ranikeka&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I am using proc sql method for percentage calculation to generate table. First column group A and second column with group B and third column with total of A and B. The following error comes up could you please help how to solve this issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;Create table bytra as select&lt;BR /&gt;100*round(pt1/ys,0.01) as bytrapct,&lt;BR /&gt;100*round(pt2/ys,0.01) as bytrapct,&lt;BR /&gt;100*round(pt1/123, 0.01) as bytrapct,&lt;BR /&gt;&lt;BR /&gt;From file1;&lt;BR /&gt;Quit;&lt;BR /&gt;&lt;BR /&gt;Invalid or missing arguments to the round function have caused the function to return a missing value.&lt;BR /&gt;&lt;BR /&gt;Many thanks for all the help.&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your code as posted will cause a syntax ERROR because of a surplus comma, and once that is corrected, it will cause a WARNING because you try to create the same variable three times.&lt;/P&gt;
&lt;P&gt;The NOTE about missing values is caused by your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 09:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/726663#M28144</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-16T09:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/726769#M28145</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Proc sql;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create table bytra as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;100*round(pt1/ys,0.01) as bytrapct1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;100*round(pt2/ys,0.01) as bytrapct2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;100*round(pt1/123, 0.01) as bytrapct3 &lt;STRONG&gt;/* I removed the comma here */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From file_1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Quit;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 14:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/726769#M28145</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-16T14:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/728846#M28299</link>
      <description>Thanks &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;</description>
      <pubDate>Wed, 24 Mar 2021 18:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/728846#M28299</guid>
      <dc:creator>ranikeka</dc:creator>
      <dc:date>2021-03-24T18:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/728848#M28300</link>
      <description>Thank you &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;</description>
      <pubDate>Wed, 24 Mar 2021 18:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sql-error/m-p/728848#M28300</guid>
      <dc:creator>ranikeka</dc:creator>
      <dc:date>2021-03-24T18:13:11Z</dc:date>
    </item>
  </channel>
</rss>

