<?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 my pgm in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814508#M321475</link>
    <description>&lt;P&gt;It may be that the time allowed to edit your original post has expired.&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 23:50:46 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-05-20T23:50:46Z</dc:date>
    <item>
      <title>Help in my pgm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814493#M321471</link>
      <description>&lt;P&gt;Please suggest to get the output. Thank you&lt;/P&gt;
&lt;P&gt;I need to replace mean,medain,cv with '-' if row with 'n' has less than 3.&lt;/P&gt;
&lt;P&gt;for param='a',&amp;nbsp; s2 column has 2 for n, so I need to change the mean,median,cv to '-'.&lt;/P&gt;
&lt;P&gt;for param='b',&amp;nbsp; s2 and s3 columns have 2 and1, so I need to change the mean,median,cv to '-'.&lt;/P&gt;
&lt;P&gt;output needed:&lt;/P&gt;
&lt;P&gt;3 2 4 n a&lt;BR /&gt;5 - 8 mean a&lt;BR /&gt;4 - 5 meadin a&lt;BR /&gt;10 - 15 cv a&lt;BR /&gt;3 2 1 n b&lt;BR /&gt;5 - - mean b&lt;BR /&gt;4 - - meadin b&lt;BR /&gt;10 - - cv b&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data aa;
input s1 $ s2 $ s3 $ r3 $ param $;
datalines;
3 2 4 n a
5 6 8 mean a
4 7 5 meadin a
10 20 15 cv a
3 2 1 n b
5 6 8 mean b
4 7 5 meadin b
10 20 15 cv b
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 21:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814493#M321471</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2022-05-20T21:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help in my pgm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814497#M321472</link>
      <description>&lt;P&gt;Please go back and edit your subject line so that it is descriptive of your problem. There's no point in a subject "Help in my pgm" as almost every question here could have that subject line. The Community is trying to help you, but you have to help the Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 22:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814497#M321472</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-20T22:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help in my pgm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814503#M321473</link>
      <description>HI &lt;BR /&gt;&lt;BR /&gt;I am trying to update subject line. I do not  see any options to update the subject line.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Fri, 20 May 2022 23:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814503#M321473</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2022-05-20T23:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help in my pgm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814508#M321475</link>
      <description>&lt;P&gt;It may be that the time allowed to edit your original post has expired.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 23:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814508#M321475</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-20T23:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help in my pgm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814514#M321480</link>
      <description>&lt;P&gt;Why do you have the data is such a strange layout?&lt;/P&gt;
&lt;P&gt;Is PARAM the key variable that let's you link the observations with N to the observations with the MEDIAN?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why isn't the data organized like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input param $ repeat n mean median cv;
cards;
a 1 3 5 4 10
a 2 2 6 7 20
a 3 4 8 5 15
b 1 3 5 4 10
b 2 2 6 7 20
b 3 1 8 5 15
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then the request change is easy;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
  set have;
  if N&amp;lt; 3 then call missing(of mean median cv);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 00:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-my-pgm/m-p/814514#M321480</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-05-21T00:49:00Z</dc:date>
    </item>
  </channel>
</rss>

