<?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: Recoding  variable with 'contains' and 'where' in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548854#M33377</link>
    <description>Are all your codes single digits or can you have two digit codes? It affects the options for searching. One approach however, that's pretty easy is to split each condition to a separate line and then use PROC TRANSPOSE. &lt;BR /&gt;&lt;BR /&gt;Use COUNTW() To get number of words, SCAN() to separate them, and PROC TRANSPOSE to flip it.&lt;BR /&gt;&lt;BR /&gt;data long;&lt;BR /&gt;set have;&lt;BR /&gt;&lt;BR /&gt;n_diags = countw(condition);&lt;BR /&gt;do i=1 to n_diags;&lt;BR /&gt;diag = scan(condition, i, ",");&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;*then transpose to a wide format;</description>
    <pubDate>Fri, 05 Apr 2019 17:42:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-04-05T17:42:49Z</dc:date>
    <item>
      <title>Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548839#M33376</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My data has a variable "conditions" which has values from 0 to 8, depending upon what the patient has. I want to do univariate regression analysis for each one of these condition. so, need to recode into separate variables for each value. For example: data is following where each number indicates&amp;nbsp; a disease, here 0: smoking status, 1: liver disease, 2: renal disease and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Condition&amp;nbsp; &amp;nbsp;Smoker&amp;nbsp; &amp;nbsp; &amp;nbsp; liverdiseases&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;0,1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;0,2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;1,3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;1,2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;0&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;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;3,4,6,7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Smoker and liver diseases are examples for outcome that I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to recode my data into new variables : smoker, liver, renal, and so on, where 1 is no smoking, 0 is smoking, and same for other variables.&lt;/P&gt;&lt;P&gt;When I used code:&lt;/P&gt;&lt;P&gt;data name;&lt;/P&gt;&lt;P&gt;set previous;&lt;/P&gt;&lt;P&gt;where Conditions contains '0';&lt;/P&gt;&lt;P&gt;smoker='1';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the data with only '0' values, and remaining gets deleted. I want to sort all and keep all the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 21:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548839#M33376</guid>
      <dc:creator>Sakshi13</dc:creator>
      <dc:date>2019-04-05T21:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548854#M33377</link>
      <description>Are all your codes single digits or can you have two digit codes? It affects the options for searching. One approach however, that's pretty easy is to split each condition to a separate line and then use PROC TRANSPOSE. &lt;BR /&gt;&lt;BR /&gt;Use COUNTW() To get number of words, SCAN() to separate them, and PROC TRANSPOSE to flip it.&lt;BR /&gt;&lt;BR /&gt;data long;&lt;BR /&gt;set have;&lt;BR /&gt;&lt;BR /&gt;n_diags = countw(condition);&lt;BR /&gt;do i=1 to n_diags;&lt;BR /&gt;diag = scan(condition, i, ",");&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;*then transpose to a wide format;</description>
      <pubDate>Fri, 05 Apr 2019 17:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548854#M33377</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-04-05T17:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548861#M33378</link>
      <description>A simple approach:&lt;BR /&gt;&lt;BR /&gt;if indexw(condition, '0') then smoker=1;&lt;BR /&gt;else smoker=0;&lt;BR /&gt;&lt;BR /&gt;Add as many such pairs of statements as you want.</description>
      <pubDate>Fri, 05 Apr 2019 18:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548861#M33378</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-05T18:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548923#M33379</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126829"&gt;@Sakshi13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;My data has a variable "conditions" which has values from 0 to 8, depending upon what the patient has. I want to do univariate regression analysis for each one of these condition. so, need to recode into separate variables for each value. For example: data is following where each number indicates&amp;nbsp; a disease, here 0: smoking status, 1: liver disease, 2: renal disease and so on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Condition&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;P&gt;0,1&lt;/P&gt;
&lt;P&gt;0,2&lt;/P&gt;
&lt;P&gt;1,3&lt;/P&gt;
&lt;P&gt;1,2&lt;/P&gt;
&lt;P&gt;2,3,5&lt;/P&gt;
&lt;P&gt;3,4,6,7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to recode tmy data into new variables : smoker, liver, renal, and so on, where 1 is no smoking, 0 is smoking, and same for other variables.&lt;/P&gt;
&lt;P&gt;When I used code:&lt;/P&gt;
&lt;P&gt;data name;&lt;/P&gt;
&lt;P&gt;set previous;&lt;/P&gt;
&lt;P&gt;where Conditions contains '0';&lt;/P&gt;
&lt;P&gt;smoker='1';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the data with only '0' values, and remaining gets deleted. I want to sort all and keep all the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I suggest that you use 1 for a "true" or 'yes' condition. Especially since it isn't very clear what a 0 = "no liver" or "no renal" might mean??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This might get you started:&lt;/P&gt;
&lt;PRE&gt;data example;
   informat codestr $18.;
   input codestr;
   array v(0:9) tobacco cond2-cond10;/*&amp;lt; place your variable names here*/
                /* in the order of the code VALUES*/ 
   do i=0 to 9;
      v[i]= index(codestr,put(i,best1.))=0;
   end;
   drop i;
datalines;
0
0,2
3,4,5,6
0,1,2,3,4,5,6,7,8,9
;
run;&lt;/PRE&gt;
&lt;P&gt;Since you didn't provide much detail in the form of which code goes with which topic can't go much more than add variables to suit.&lt;/P&gt;
&lt;P&gt;This &lt;STRONG&gt;will not&lt;/STRONG&gt; work if you have 2 digit codes or ones with decimals.&lt;/P&gt;
&lt;P&gt;The code uses SAS behavior that a comparison will return 1 for true and 0 for false. So when the index value is not found this assigns 1.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 19:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548923#M33379</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-05T19:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548970#M33380</link>
      <description>&lt;P&gt;I tried this but again it only defines '0' if there is only '0' in value. I want to include all entries that has zero in it.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 21:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548970#M33380</guid>
      <dc:creator>Sakshi13</dc:creator>
      <dc:date>2019-04-05T21:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548971#M33381</link>
      <description>&lt;P&gt;ALL codes are single digits, from 0 to 8. entries may include anything from single code to multiple code, depending upon the health conditions a person has&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 21:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548971#M33381</guid>
      <dc:creator>Sakshi13</dc:creator>
      <dc:date>2019-04-05T21:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548987#M33382</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126829"&gt;@Sakshi13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I tried this but again it only defines '0' if there is only '0' in value. I want to include all entries that has zero in it.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;???????&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example data for ALL the variables involved in this recode AND an example of what the actual output should look like for that given data.&lt;/P&gt;
&lt;P&gt;You should provide enough examples to see the overall picture and exercise logic for each variable involved.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 22:29:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548987#M33382</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-05T22:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548993#M33383</link>
      <description>Yes, sorry for that, I edited my question, provided what I have and what I want</description>
      <pubDate>Fri, 05 Apr 2019 23:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548993#M33383</guid>
      <dc:creator>Sakshi13</dc:creator>
      <dc:date>2019-04-05T23:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548995#M33384</link>
      <description>I edited my question, sorry I realized it was not clear, this will help in providing solution.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Apr 2019 23:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/548995#M33384</guid>
      <dc:creator>Sakshi13</dc:creator>
      <dc:date>2019-04-05T23:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549003#M33385</link>
      <description>&lt;P&gt;Sorry, my fault.&amp;nbsp; By default, INDEXW uses only blanks as delimiters.&amp;nbsp; To use both blanks and commas as delimiters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if indexw(condition, '0', ', ') then smoker=1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else smoker=0;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 01:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549003#M33385</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-06T01:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549013#M33386</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126829"&gt;@Sakshi13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to understand what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;posted because this is the solution to your problem.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 03:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549013#M33386</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-04-06T03:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549040#M33387</link>
      <description>&lt;P&gt;Hello, I tried that, please confirm if I should be mentioning all the entries in datalines??&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 13:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549040#M33387</guid>
      <dc:creator>Sakshi13</dc:creator>
      <dc:date>2019-04-06T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549057#M33388</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126829"&gt;@Sakshi13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello, I tried that, please confirm if I should be mentioning all the entries in datalines??&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I guess that you didn't mark it as solution means that you didn't fully understand the proposed code.&lt;/P&gt;
&lt;P&gt;You didn't tell us what the different codes mean; which code should populate a '1' into which variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only thing you need to amend to make the proposed code work is to list the variables in the array statement in the order of your codes. For example if variable&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;liverdiseases&lt;/EM&gt; should be set to 1 for &lt;FONT color="#800000"&gt;code &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/FONT&gt; then make sure this variable is listed as &lt;FONT color="#800000"&gt;3rd element in the array&lt;/FONT&gt; statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 19:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549057#M33388</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-04-06T19:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549058#M33389</link>
      <description>&lt;P&gt;Hello, yes, I did mention the variables in the same order (Below is list of variables):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data example;&lt;BR /&gt;informat Comorbidities $18.;&lt;BR /&gt;input Comorbidities;&lt;BR /&gt;array v(0:8) smoker dm cad stroke cancer chf liver renal none ;/*&amp;lt; place your variable names here*/&lt;BR /&gt;/* in the order of the code VALUES*/&lt;BR /&gt;do i=0 to 8;&lt;BR /&gt;v[i]= index(Comorbidities,put(i,best1.))=0;&lt;BR /&gt;end;&lt;BR /&gt;drop i;&lt;BR /&gt;datalines;&lt;/P&gt;&lt;P&gt;&amp;nbsp;***should I mention the complete data here? Or can I skip this part? ****&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might be right, I am still trying to understand the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 20:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549058#M33389</guid>
      <dc:creator>Sakshi13</dc:creator>
      <dc:date>2019-04-06T20:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549060#M33390</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126829"&gt;@Sakshi13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;***should I mention the complete data here? Or can I skip this part? ****&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;All the Infile/Input/Datalines parts are only to create the sample data. If you've got this data already in a table then of course you will replace all of this with a SET statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 20:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549060#M33390</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-04-06T20:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding  variable with 'contains' and 'where'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549062#M33391</link>
      <description>&lt;P&gt;I understand it now, sorry got confused. I really appreciate all the help. Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 20:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Recoding-variable-with-contains-and-where/m-p/549062#M33391</guid>
      <dc:creator>Sakshi13</dc:creator>
      <dc:date>2019-04-06T20:38:41Z</dc:date>
    </item>
  </channel>
</rss>

