<?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: How to divide a column total with all a vertical column? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479447#M123766</link>
    <description>&lt;P&gt;Start by posting working code:&lt;/P&gt;
&lt;PRE&gt;24         data have;
25         input xyz a b c total;
26         cards
27         a       1     2         3         6
           _
           22
           76
ERROR 22-322: Syntax error, expecting one of the following: ;, CANCEL, PGM.  

ERROR 76-322: Syntax error, statement will be ignored.

28         b       4     5         6        15
29         c       2     3         4          9
30         total   7    10       13       30
31         run;
32         
33         
34         GOPTIONS NOACCESSIBLE;
35         %LET _CLIENTTASKLABEL=;
36         %LET _CLIENTPROJECTPATH=;
37         %LET _CLIENTPROJECTNAME=;
38         %LET _SASPROGRAMFILE=;
NOTE: DATA statement used (Total process time):
      real time           0.05 seconds
      cpu time            0.00 seconds
      
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.HAVE may be incomplete.  When this step was stopped there were 0 observations and 5 variables.

&lt;/PRE&gt;</description>
    <pubDate>Thu, 19 Jul 2018 10:24:05 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-07-19T10:24:05Z</dc:date>
    <item>
      <title>How to divide a column total with all a vertical column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479434#M123761</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input xyz a b c total;
cards
a       1     2         3         6
b       4     5         6        15
c       2     3         4          9
total   7    10       13       30
run;

required:

vertical a column total 7 need to divide with all a veriable vertical rows only similarly vertical b,c,total

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2018 09:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479434#M123761</guid>
      <dc:creator>rajeshalwayswel</dc:creator>
      <dc:date>2018-07-19T09:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to divide a column total with all a vertical column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479447#M123766</link>
      <description>&lt;P&gt;Start by posting working code:&lt;/P&gt;
&lt;PRE&gt;24         data have;
25         input xyz a b c total;
26         cards
27         a       1     2         3         6
           _
           22
           76
ERROR 22-322: Syntax error, expecting one of the following: ;, CANCEL, PGM.  

ERROR 76-322: Syntax error, statement will be ignored.

28         b       4     5         6        15
29         c       2     3         4          9
30         total   7    10       13       30
31         run;
32         
33         
34         GOPTIONS NOACCESSIBLE;
35         %LET _CLIENTTASKLABEL=;
36         %LET _CLIENTPROJECTPATH=;
37         %LET _CLIENTPROJECTNAME=;
38         %LET _SASPROGRAMFILE=;
NOTE: DATA statement used (Total process time):
      real time           0.05 seconds
      cpu time            0.00 seconds
      
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.HAVE may be incomplete.  When this step was stopped there were 0 observations and 5 variables.

&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2018 10:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479447#M123766</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-19T10:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to divide a column total with all a vertical column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479448#M123767</link>
      <description>&lt;P&gt;And post an example for the expected result. Your requirement is quite cryptic.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 10:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479448#M123767</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-19T10:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to divide a column total with all a vertical column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479522#M123810</link>
      <description>&lt;P&gt;Thanks for the inputs. I'll put my efforts.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479522#M123810</guid>
      <dc:creator>rajeshalwayswel</dc:creator>
      <dc:date>2018-07-19T14:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to divide a column total with all a vertical column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479532#M123815</link>
      <description>&lt;P&gt;That looks like a cross tab.&amp;nbsp; Why not start with the raw data and let SAS generate the report you need?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  length var1 var2 $8 amount 8;
  input var1 $ @ ;
  do var2='a','b','c';
    input amount @ ;
    output;
  end;
cards;
a   1 2 3
b   4 5 6
c   2 3 4
;

proc freq data=have ;
  tables var1*var2 ;
  weight amount ;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-divide-a-column-total-with-all-a-vertical-column/m-p/479532#M123815</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-19T14:54:39Z</dc:date>
    </item>
  </channel>
</rss>

