<?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: Retrieving specific survey responses in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Retrieving-specific-survey-responses/m-p/483456#M125362</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145582"&gt;@braak&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to clean up survey data that I have.&amp;nbsp;There was a question on the survey that had a number of possible answers including "Other (please specify)". I'd like to be able to retrieve all of the responses for those who selected "other", and read what they wrote after "please specify". I just can't figure out what the command should be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate the help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Following is a skeleton program that you &lt;STRONG&gt;must&lt;/STRONG&gt; modify:&lt;/P&gt;
&lt;PRE&gt;proc print data=have;
   where questionresponse='Other (please specify)';
   var respondentid variablecontainingothertext;
run;&lt;/PRE&gt;
&lt;P&gt;You have to change the data set name in place of have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You must place the actual name of the variable that contains the "other specify" respons in place of questionresponse. the value in the quotes after the = must contain the value actually appearing in your data set. If it is a numeric code then no quotes, otherwise the text has to match &lt;STRONG&gt;exactly&lt;/STRONG&gt; as it appears in your data set.&lt;/P&gt;
&lt;P&gt;You must change the name of variablecontainingothertext with your SAS data set variable that contains the text.&lt;/P&gt;
&lt;P&gt;I am assuming that you have some sort of respondent id variable, you include that as part of the output as it very often comes up handy for processing. (such as reducing the rambling text in the open end to an actual category that was provided as an answer).&lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2018 15:50:12 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-08-02T15:50:12Z</dc:date>
    <item>
      <title>Retrieving specific survey responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieving-specific-survey-responses/m-p/483434#M125351</link>
      <description>&lt;P&gt;I'm trying to clean up survey data that I have.&amp;nbsp;There was a question on the survey that had a number of possible answers including "Other (please specify)". I'd like to be able to retrieve all of the responses for those who selected "other", and read what they wrote after "please specify". I just can't figure out what the command should be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 15:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieving-specific-survey-responses/m-p/483434#M125351</guid>
      <dc:creator>braak</dc:creator>
      <dc:date>2018-08-02T15:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving specific survey responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieving-specific-survey-responses/m-p/483440#M125354</link>
      <description>&lt;P&gt;There is no way we can possibly tell you.&amp;nbsp; Please review the guidance found under the post button, on how to post a quesiton.&amp;nbsp; Provide test data (in the form of a datastep), and what the output should look like.&amp;nbsp; Also show what you have done to date, provide log excerpts with any error/warning messages etc.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 15:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieving-specific-survey-responses/m-p/483440#M125354</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-02T15:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving specific survey responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieving-specific-survey-responses/m-p/483456#M125362</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145582"&gt;@braak&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to clean up survey data that I have.&amp;nbsp;There was a question on the survey that had a number of possible answers including "Other (please specify)". I'd like to be able to retrieve all of the responses for those who selected "other", and read what they wrote after "please specify". I just can't figure out what the command should be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate the help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Following is a skeleton program that you &lt;STRONG&gt;must&lt;/STRONG&gt; modify:&lt;/P&gt;
&lt;PRE&gt;proc print data=have;
   where questionresponse='Other (please specify)';
   var respondentid variablecontainingothertext;
run;&lt;/PRE&gt;
&lt;P&gt;You have to change the data set name in place of have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You must place the actual name of the variable that contains the "other specify" respons in place of questionresponse. the value in the quotes after the = must contain the value actually appearing in your data set. If it is a numeric code then no quotes, otherwise the text has to match &lt;STRONG&gt;exactly&lt;/STRONG&gt; as it appears in your data set.&lt;/P&gt;
&lt;P&gt;You must change the name of variablecontainingothertext with your SAS data set variable that contains the text.&lt;/P&gt;
&lt;P&gt;I am assuming that you have some sort of respondent id variable, you include that as part of the output as it very often comes up handy for processing. (such as reducing the rambling text in the open end to an actual category that was provided as an answer).&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 15:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieving-specific-survey-responses/m-p/483456#M125362</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-02T15:50:12Z</dc:date>
    </item>
  </channel>
</rss>

