<?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 select the dataset out of survey function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/602073#M174277</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270201"&gt;@Watts&lt;/a&gt;,&amp;nbsp;boy do I wish I was the guy that wrote that answer. However, all the credit must go to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 17:42:59 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-11-06T17:42:59Z</dc:date>
    <item>
      <title>How to select the dataset out of survey function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/601490#M173986</link>
      <description>&lt;P&gt;Hi all :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helps in this SAS community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one more question that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used proc survey function to select some data from the data set, but I wan to change the rest of this dataset's variable to 9999 (which is a dummy number) and merge them back to one data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the SQL function, but it doesn't work because the first survey dataset includes other output variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code and the dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyselect data=ORD;&lt;/P&gt;&lt;P&gt;method=pps sampsize=125 out = randomsurvey_PPS ;&lt;/P&gt;&lt;P&gt;size b ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!(I want to select the rest of 875 numbers as a new dataset and change the b =9999)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 19:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/601490#M173986</guid>
      <dc:creator>Gustavo8</dc:creator>
      <dc:date>2019-11-04T19:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the dataset out of survey function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/601497#M173990</link>
      <description>&lt;P&gt;Your example code won't run as shown. The semicolon after the input data set name will cause problems as the method, sampsize and out parameters are part of the Proc statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thing that you want the OUTALL option on the Proc statement. Then all of the records of the input set are in the output with a variable, Selected,&amp;nbsp;that indicates which records are the selected records with a value of 1 and 0 when not selected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use a data step to set the variables as needed when Selected=0.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 20:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/601497#M173990</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-04T20:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the dataset out of survey function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/602071#M174276</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_syntax01.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#statug.surveyselect.selectoutall" target="_self"&gt;OUTALL&lt;/A&gt;&amp;nbsp;option isn't currently available with METHOD=PPS. (It's available with equal-probability selection methods.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The approach in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/proc-surveyselect-provides-same-randomization/m-p/601255/highlight/true#M173873" target="_self"&gt;this post&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;might do what you need.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/602071#M174276</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2019-11-06T17:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the dataset out of survey function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/602073#M174277</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270201"&gt;@Watts&lt;/a&gt;,&amp;nbsp;boy do I wish I was the guy that wrote that answer. However, all the credit must go to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/602073#M174277</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-06T17:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the dataset out of survey function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/602075#M174279</link>
      <description>&lt;P&gt;Thanks for the correction. And thanks to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-dataset-out-of-survey-function/m-p/602075#M174279</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2019-11-06T17:47:01Z</dc:date>
    </item>
  </channel>
</rss>

