<?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: SAS script to random pick obs from group data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-script-to-random-pick-obs-from-group-data/m-p/372394#M89045</link>
    <description>&lt;P&gt;Please post some example data (in a data step with datalines, NOT a Excel file!), the code you already have, and where the result differs from your expectations. If you get errors or warning messages, post the log.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Jul 2017 07:36:24 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-07-01T07:36:24Z</dc:date>
    <item>
      <title>SAS script to random pick obs from group data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-script-to-random-pick-obs-from-group-data/m-p/372392#M89044</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS script. Really apprecaite how to write sas script base on below logic steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Extract total monthly sales data = n volume&lt;/P&gt;&lt;P&gt;2. Group and count total volume from data field name = A (field A&amp;nbsp;is product color code depending to monthly sales, mean if certain color code no sales in that month, that color code will not appear in n volume)&lt;/P&gt;&lt;P&gt;3. Randam pick each color code sales one case from each group&lt;/P&gt;&lt;P&gt;4. repeat to pick the randam sample observation from each group until total sample reach 5% from total monthly sales data (5%*n volume)&lt;/P&gt;&lt;P&gt;5. list down all sales from randam pick.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2017 07:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-script-to-random-pick-obs-from-group-data/m-p/372392#M89044</guid>
      <dc:creator>kltee</dc:creator>
      <dc:date>2017-07-01T07:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS script to random pick obs from group data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-script-to-random-pick-obs-from-group-data/m-p/372394#M89045</link>
      <description>&lt;P&gt;Please post some example data (in a data step with datalines, NOT a Excel file!), the code you already have, and where the result differs from your expectations. If you get errors or warning messages, post the log.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2017 07:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-script-to-random-pick-obs-from-group-data/m-p/372394#M89045</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-01T07:36:24Z</dc:date>
    </item>
  </channel>
</rss>

