<?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: Help! in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227744#M54218</link>
    <description>You didn't answer any of my questions...&lt;BR /&gt;Is the rule if any problemtype variable is equal to 'aa' you need to summarize the different variables? &lt;BR /&gt;How many problemtype variables?&lt;BR /&gt;What naming conventions are used?&lt;BR /&gt;&lt;BR /&gt;Can you simplify the problem to say 10 problemtype variables and 4 observations and show your expected input and output?</description>
    <pubDate>Tue, 29 Sep 2015 19:23:57 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-09-29T19:23:57Z</dc:date>
    <item>
      <title>Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227723#M54211</link>
      <description>&lt;P&gt;I have patient encounter file with more than 13000 records. File structure is like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No&amp;nbsp; Problemtype1&amp;nbsp;&amp;nbsp; &amp;nbsp; problemtype1b&amp;nbsp;&amp;nbsp;&amp;nbsp; problemtype1c&amp;nbsp; ...&amp;nbsp; problemtype49&amp;nbsp;&amp;nbsp; prblemtype49c &amp;nbsp; outcome1 &amp;nbsp; outcome1b ...&amp;nbsp; outcome49c&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------------- &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aa&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aa &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; solved&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rejected&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; denied&lt;/P&gt;&lt;P&gt;&amp;nbsp;2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;13000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to count respective outcomes if problemtype is 'aa'. I tried using 2 dimentional array but its not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to solve this problem ?&amp;nbsp;&amp;nbsp; Please help me. I am new to SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227723#M54211</guid>
      <dc:creator>BKPatel</dc:creator>
      <dc:date>2015-09-29T17:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227734#M54215</link>
      <description>So if any problem type is 'aa' you need to summarize the different values of outcome variables? How many problemtype variables and outcome and what are there naming conventions? Does the solution from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; work for you from the other question you posted?</description>
      <pubDate>Tue, 29 Sep 2015 18:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227734#M54215</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-29T18:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227743#M54217</link>
      <description>&lt;P&gt;No. I am getting error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Array subscript out of range at &amp;nbsp;problemType = pt{i};&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 19:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227743#M54217</guid>
      <dc:creator>BKPatel</dc:creator>
      <dc:date>2015-09-29T19:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227744#M54218</link>
      <description>You didn't answer any of my questions...&lt;BR /&gt;Is the rule if any problemtype variable is equal to 'aa' you need to summarize the different variables? &lt;BR /&gt;How many problemtype variables?&lt;BR /&gt;What naming conventions are used?&lt;BR /&gt;&lt;BR /&gt;Can you simplify the problem to say 10 problemtype variables and 4 observations and show your expected input and output?</description>
      <pubDate>Tue, 29 Sep 2015 19:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227744#M54218</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-29T19:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227750#M54220</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/56460"&gt;@BKPatel&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;No. I am getting error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Array subscript out of range at &amp;nbsp;problemType = pt{i};&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Means that you assigned a value to i that doesn't match the size of the array PT when created. Usually by incrementing to large but if your base index is something other than 1 then othe possibilities abound.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 19:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227750#M54220</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-29T19:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227756#M54224</link>
      <description>&lt;P&gt;Here is some sample code. change the var and arrays from 5 to 49.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have; *infile yourfile end=eof;&lt;BR /&gt; input n:5. (prob1 prob2 prob3 prob4 prob5) (:$8.) &lt;BR /&gt; (outcom1 outcom2 outcom3 outcom4 outcom5) (:$20.);&lt;/P&gt;
&lt;P&gt;array prob {5} $8 prob1-prob5;&lt;BR /&gt;array outcom {5} $20 outcom1-outcom5;&lt;BR /&gt;do x=1 to 5 ;&lt;BR /&gt; if prob{x}='aa' then do;&lt;BR /&gt; if outcom{x}='solved' then solved+1;&lt;BR /&gt; if outcom{x}='rejected' then rejected+1;&lt;BR /&gt; if outcom{x}='denied' then denied+1;&lt;BR /&gt; end; end; &lt;BR /&gt; *if eof then output;&lt;BR /&gt;cards;&lt;BR /&gt;1 aa bb cc aa bb solved rejected denied solved denied&lt;BR /&gt;2 aa bb cc aa bb solved rejected denied solved denied&lt;BR /&gt;3 aa bb cc aa bb solved rejected denied solved denied&lt;BR /&gt;; &lt;BR /&gt;proc print; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 20:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227756#M54224</guid>
      <dc:creator>Jim_G</dc:creator>
      <dc:date>2015-09-29T20:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227757#M54225</link>
      <description>I am sorry. I was so much into solving problem.&lt;BR /&gt;&lt;BR /&gt;There are 147 problemtype variables and 147 Outcome variables. I also tried to simplify and run code. With minor change in solution given by PGstats, I solved problem.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot everyone for inputs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Sep 2015 20:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help/m-p/227757#M54225</guid>
      <dc:creator>BKPatel</dc:creator>
      <dc:date>2015-09-29T20:11:35Z</dc:date>
    </item>
  </channel>
</rss>

