<?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: Delete observations which include certain text in one of many variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760663#M240540</link>
    <description>Once again thanks.&lt;BR /&gt;&lt;BR /&gt;The only challenge I have left is that your example assumes that my variables are numbered 1-30 (at the end of each variable name). They are not. Is there not a more flexible way of approaching this problem where one is not reliant on numbers, but where one can define a variable list to loop over?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Tue, 10 Aug 2021 14:03:13 GMT</pubDate>
    <dc:creator>mgrasmussen</dc:creator>
    <dc:date>2021-08-10T14:03:13Z</dc:date>
    <item>
      <title>Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760583#M240513</link>
      <description>&lt;P&gt;Dear SAS experts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have approximately 30 variables in a dataset which are all character variables. Many of them contain no data (are blank), but the rest contain some text. I would like to delete all observations which include certain data (text) among these 30 variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example in a dataset which include data on automobile (brand) ownership, I might want to all those persons/observations who own a "Toyota" or a "Honda". This fictional dataset may include 20 variables containing information on automobile ownership, i.e. a person may in this case own up to 20 cars. But I would like to delete those observations who own either a "Toyota" or a "Honda" (and of course then also those who own both), regardsless of the brands of cars they may own in addition to these brands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried different syntax but I cannot get it to work. Can anyone help with some generic code? I suspect that I need to run some syntax in combination with some form of "first variable-last variable in dataset" specification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 12:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760583#M240513</guid>
      <dc:creator>mgrasmussen</dc:creator>
      <dc:date>2021-08-10T12:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760587#M240515</link>
      <description>&lt;P&gt;I think you should make an array and loop through it. Create a flag for the if it's Toyota or Honda. Then simply write if flag='Y' then delete in a DATA step.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 12:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760587#M240515</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-08-10T12:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760606#M240519</link>
      <description>Dear Irackley&lt;BR /&gt;&lt;BR /&gt;Thank you for the advice.&lt;BR /&gt;&lt;BR /&gt;I am somewhat new to SAS and have only briefly heart about arrays. I will look more into this.</description>
      <pubDate>Tue, 10 Aug 2021 12:22:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760606#M240519</guid>
      <dc:creator>mgrasmussen</dc:creator>
      <dc:date>2021-08-10T12:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760608#M240521</link>
      <description>&lt;P&gt;ok, I don't know what your variables are named but pretend it's var1-var30. Then you can write code like this.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydata;
set cars;
flag='N';
array cars[30] $ var1-var30;
do i=1 to dim(cars);
if cars[i] in ('Toyota', 'Honda') then flag='Y';
end;
if flag='Y' then delete;
run;


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Aug 2021 15:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760608#M240521</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-08-10T15:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760615#M240523</link>
      <description>Looks great. Thanks!&lt;BR /&gt;&lt;BR /&gt;What does "if cars[I]" reference? I suspect it has something to do with the do loop. Perhaps there is no case sensitivity here? i (small i)=I (large i). I suspect that this is the case.&lt;BR /&gt;&lt;BR /&gt;Best regards</description>
      <pubDate>Tue, 10 Aug 2021 12:46:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760615#M240523</guid>
      <dc:creator>mgrasmussen</dc:creator>
      <dc:date>2021-08-10T12:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760635#M240530</link>
      <description>&lt;P&gt;try it out and let me know if it works. I wanted to leave it lowercase but my laptop is automatically capitalizing it. I declared a character array called cars for your 30 variables or maybe you said 20. it is going to loop through each element in the array. I is the iterator. it's referencing elements in the array. dim(cars) is the all the values in the array or if you don't want to do that just put I=1 to 30 if you know there are 30 elements in the array.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 13:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760635#M240530</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-08-10T13:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760663#M240540</link>
      <description>Once again thanks.&lt;BR /&gt;&lt;BR /&gt;The only challenge I have left is that your example assumes that my variables are numbered 1-30 (at the end of each variable name). They are not. Is there not a more flexible way of approaching this problem where one is not reliant on numbers, but where one can define a variable list to loop over?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 10 Aug 2021 14:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760663#M240540</guid>
      <dc:creator>mgrasmussen</dc:creator>
      <dc:date>2021-08-10T14:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760667#M240543</link>
      <description>&lt;P&gt;No. You will have to write the names of the variables to include in the array.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 14:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760667#M240543</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-08-10T14:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760668#M240544</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/388382"&gt;@mgrasmussen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Once again thanks.&lt;BR /&gt;&lt;BR /&gt;The only challenge I have left is that your example assumes that my variables are numbered 1-30 (at the end of each variable name). They are not. Is there not a more flexible way of approaching this problem where one is not reliant on numbers, but where one can define a variable list to loop over?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the bit&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;array cars[30] $ var1-var30;&lt;/LI-CODE&gt;
&lt;P&gt;you can replace the var1-var30 with any list of your variables. You don't even have to have the number 30 if the variables already exist in the data set, use array (*) and the size of the array is set by the number of variables you supply.&lt;/P&gt;
&lt;PRE&gt;array somename(*) thisvar thatvar anothervar a b c pdq;&lt;/PRE&gt;
&lt;P&gt;for example would create the array Somename and the variables listed would be the members.&lt;/P&gt;
&lt;P&gt;Read the documentation for the Array statement. The variables must be of the same type.&lt;/P&gt;
&lt;P&gt;Somename[1] references the first variable named: Thisvar; Somename[2] would be Thatvar and so on.&lt;/P&gt;
&lt;P&gt;Any place your code might want to use the variable values you can use either the array reference, Somename[] or the name.&amp;nbsp; The value used in the brackets must be an integer and unless you use some different options for establishing the array have a value fo 1 to n, where n is the number of variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 14:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760668#M240544</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-10T14:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760669#M240545</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/388382"&gt;@mgrasmussen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;The only challenge I have left is that your example assumes that my variables are numbered 1-30 (at the end of each variable name). They are not. Is there not a more flexible way of approaching this problem where one is not reliant on numbers, but where one can define a variable list to loop over?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can use variable lists, for example, if the variables are consecutive in the SAS data set, and the first variable is named population and the last of the consecutive variables is named avg_income, you can use something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array x population--avg_income;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But enough of us guessing ...&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/388382"&gt;@mgrasmussen&lt;/a&gt;&amp;nbsp;its time for you to be specific, and show us (a portion of) your actual variable names.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 14:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760669#M240545</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-10T14:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760671#M240546</link>
      <description>&lt;P&gt;It would be helpful if you post some data -- even if it's just mocked up data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One question I have is:&amp;nbsp; Can "Toyota" or "Honda" appear within other text or is the brand name of the car in a column by itself?&lt;/P&gt;
&lt;P&gt;For example, would your data look more like the "Brand" column below or would it look more like the "Car_Info" column below?&lt;/P&gt;
&lt;TABLE width="164"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="49"&gt;Brand&lt;/TD&gt;
&lt;TD width="115"&gt;Car_Info&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Toyota&lt;/TD&gt;
&lt;TD&gt;2014 Toyota Camry&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If "Toyota" can appear anywhere in the column, then we need to take a different approach.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 14:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760671#M240546</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-10T14:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760690#M240550</link>
      <description>Hey PaigeMiller&lt;BR /&gt;&lt;BR /&gt;This sounds like something which could be a solution. My only question is how you then “call” such a list (“x” according to your example) in a SAS do loop?&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Tue, 10 Aug 2021 15:16:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760690#M240550</guid>
      <dc:creator>mgrasmussen</dc:creator>
      <dc:date>2021-08-10T15:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760691#M240551</link>
      <description>&lt;P&gt;Same way you created and used an ARRAY previously (as in the example code from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181158"&gt;@tarheel13&lt;/a&gt;&amp;nbsp;)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 15:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760691#M240551</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-10T15:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760707#M240562</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/388382"&gt;@mgrasmussen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a slightly modified version of&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181158"&gt;@tarheel13&lt;/a&gt;&amp;nbsp;'s code. It uses an automatic array _characters_ containing all defined character variables (a smart SAS feature). The index function + lowcase identifies all occurences of Toyota or Honda in all character strings regardless of case or other content in the text.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydata;
	set sashelp.cars;
	array cars $ _character_;
	flag='N';
	do i=1 to dim(cars);
		if index(lowcase(cars[i]),'toyota') or index(lowcase(cars[i]),'honda') then flag='Y';
	end;
	if flag='Y' then delete;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 17:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/760707#M240562</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2021-08-10T17:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761073#M240766</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Irackley&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution I found makes most sense it based on most of your code, but with small changes here and there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My proposed solution can be written in a general way as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;data new;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set old;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;flag='N';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;array delete $ firstvar--last var; /* There are approximately 30 variables (consecutive), which are all character variables */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do i=1 to dim(delete);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (delete(i)='nametype1' or delete(i)='nametype2') then flag='Y';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if flag='Y' then delete;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;drop flag i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I realize that there maybe even smarter ways of writing the code but I have written it in this way so it more understable for both myself and my colleagues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once again thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 07:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761073#M240766</guid>
      <dc:creator>mgrasmussen</dc:creator>
      <dc:date>2021-08-12T07:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761074#M240767</link>
      <description>&lt;P&gt;Dear Ballardw&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the input. But if you have 70 variables the code would be quite long would and not that helpful, correct? As far as I understand your code makes sense mostly when you have relatively few variables which you want to loop over. But it does work around the problem of having to rely on numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 07:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761074#M240767</guid>
      <dc:creator>mgrasmussen</dc:creator>
      <dc:date>2021-08-12T07:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761075#M240768</link>
      <description>&lt;P&gt;It works perfect. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normally I would supply a code example using some available data, but I could not find one which was readily available. Fortunately I got the help I needed using generic code.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 07:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761075#M240768</guid>
      <dc:creator>mgrasmussen</dc:creator>
      <dc:date>2021-08-12T07:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761076#M240769</link>
      <description>&lt;P&gt;Dear Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I realize that I should have specified this detail. The data is as Brand, but at some point I will need to find similar solutions for variables which are organised as 'Car_Info'. I believe another person posted code which would work in such a scenario (with 'Car_info').&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 07:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761076#M240769</guid>
      <dc:creator>mgrasmussen</dc:creator>
      <dc:date>2021-08-12T07:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761087#M240773</link>
      <description>&lt;P&gt;Dear Erik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. These are great features and would work in my case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the purpose of the lowcase function? I believe I understand what it does, but why is it necessary here? I would suspect that this specification is related to the fact that you write 'toyota' and 'honda' within the code in brackets.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 08:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761087#M240773</guid>
      <dc:creator>mgrasmussen</dc:creator>
      <dc:date>2021-08-12T08:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Delete observations which include certain text in one of many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761478#M240977</link>
      <description>Lowcase function is more defensive programming in case your variables were not all in the same case. Using this function will capture Toyota or Honda regardless of case</description>
      <pubDate>Fri, 13 Aug 2021 17:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-observations-which-include-certain-text-in-one-of-many/m-p/761478#M240977</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-08-13T17:44:30Z</dc:date>
    </item>
  </channel>
</rss>

