<?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: EXTRACT substring from both left and right of specific character within variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/750904#M236276</link>
    <description>&lt;P&gt;If "UNITS" is always preceded by an expression like&amp;nbsp; xxx-yyy, and if that is always the first instance of a dash in INSTRUCTIONS, then you could:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get the first "word" of instructions, where the only word separator is a '-':&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; i.e.&amp;nbsp; &amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;scan(instructions,1,'-')&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; which extracts&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INJECT 35&amp;nbsp; &amp;nbsp; from&amp;nbsp;INJECT 35-40 UNITS INTO THE SKIN DAILY&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;From the results of #1, get the last word (where words are now separated by blanks).&amp;nbsp; Note the -1 below means to get the last word of the expression)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;scan(....,-1,'&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt; ')&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;which extracts&amp;nbsp;&amp;nbsp;&amp;nbsp;35 from&amp;nbsp; &amp;nbsp;INJECT 35&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;The output of #2, when converted from text to numeric, produces the lower range&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;lowerng=input(...,best12.)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Do the analogous operation to get the upper range.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input instructions $50.;
datalines;
INJECT 35-40 UNITS INTO THE SKIN DAILY 
INJECT 45-70 UNITS INTO THE SKIN DAILY.
10-12 UNITS AFTER BREAKFAST, LUNCH AND DINNER
VIA INSULIN PUMP AROUND 100-150 UNITS DAILY
run;
data want;
  set have;
  lowerng= input(scan(scan(instructions,1,'-'),-1,' '),best12.);
  upperng= input(scan(scan(instructions,2,'-'),+1,' '),best12.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 03:57:46 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2021-06-29T03:57:46Z</dc:date>
    <item>
      <title>EXTRACT substring from both left and right of specific character within variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/750896#M236273</link>
      <description>&lt;P&gt;Have a bunch of records as below:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;INJECT 35-40 UNITS INTO THE SKIN DAILY&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;INJECT 45-70 UNITS INTO THE SKIN DAILY.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;10-12 UNITS AFTER BREAKFAST, LUNCH AND DINNER&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;VIA INSULIN PUMP AROUND 100-150 UNITS DAILY&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Created two additional variables&amp;nbsp; to place strings to the immediate LEFT ("LOWERNG")&lt;/P&gt;&lt;P&gt;&amp;amp; RIGHT ( "UPPRNG" ) of where "-" is found in the string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've identified where the "-" is in the variable with the index command. Can be any position in the variable, usually near the beginning of the string, but not always.&amp;nbsp; Using&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; &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; &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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;IF HYPHEN &amp;gt;0 THEN LOWERNG = substr(INSTRUCTIONS,HYPHEN,HYPHEN-5); - &lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;five characters to the LEFT&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;IF HYPHEN &amp;gt;0 THEN UPPRNG = substr(INSTRUCTIONS,HYPHEN,HYPHEN+5); &lt;FONT face="arial,helvetica,sans-serif"&gt;-&lt;FONT size="3"&gt; five characters to the RIGHT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;intent is&amp;nbsp; to grab five characters to the immediate right&amp;nbsp;( "UPPRNG" ) of "-" and&amp;nbsp; five characters to the immediate left ("LOWERNG").&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Or so I thought.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Here are some results: (HYPHEN is the position of the "-")&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;INSTRUCTION&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;HYPHEN&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;UPPRNG&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;LOWERNG&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;INJECT 0-8 UNITS INTO THE SKIN 3 TIMES DAILY.&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;-8 UNIT&lt;/TD&gt;&lt;TD&gt;-8 U&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;INJECT 10-20 UNITS INTO THE SKIN DAILY.&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;-20 UNI&lt;/TD&gt;&lt;TD&gt;-20 U&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;INJECT 40-55 UNITS INTO THE SKIN DAILY.&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;-55 UNI&lt;/TD&gt;&lt;TD&gt;-55 U&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPPERNG &amp;amp; LOWERNG are identical (more or less), both variables containing strings from the RIGHT of where the hyphen is. Not what I expected at all - below is what I thought I was going to receive:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;INSTRUCTION&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;HYPHEN&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;LOWERNG&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;UPPRNG&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;INJECT 0-8 UNITS INTO THE SKIN 3 TIMES DAILY.&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;ECT 0&lt;/TD&gt;&lt;TD&gt;8 UN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;INJECT 10-20 UNITS INTO THE SKIN DAILY.&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;ECT 10&lt;/TD&gt;&lt;TD&gt;20 UN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;INJECT 40-55 UNITS INTO THE SKIN DAILY.&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;ECT 40&lt;/TD&gt;&lt;TD&gt;55 UN&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can scrub out any characters later with&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; &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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;COMPRESS(UPPRNG,'0123456789','k') &lt;/FONT&gt;;&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; &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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;COMPRESS(LOWERNG,'0123456789','k') &lt;/FONT&gt;;&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; &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; &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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After all the characters are scrubbed out, am going to add LOWERNG &amp;amp; UPPRNG, divide by two, (will need to use a put command in there somewhere) so I get an average of the upper and lower ranges.&amp;nbsp; I would like to exclude the hyphen in either&amp;nbsp; LOWERNG or UPPRNG results.&lt;/P&gt;&lt;P&gt;&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; &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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 01:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/750896#M236273</guid>
      <dc:creator>Jumboshrimps</dc:creator>
      <dc:date>2021-06-29T01:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: EXTRACT substring from both left and right of specific character within variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/750902#M236274</link>
      <description>&lt;P&gt;There are probably more elegant ways to do this but here is one approach. I've kept it fairly simple so you can see what each statement does:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input @1 instructions $50.;
  pos = findw(instructions, 'UNITS');
  dose = substr(instructions, 1, pos - 2);
  words = countw(dose);
  lowerng = input(scan(dose, words -1), best12.);
  upperng = input(scan(dose, words), best12.);
  average = (lowerng + upperng)/2;
datalines;
INJECT 35-40 UNITS INTO THE SKIN DAILY 
INJECT 45-70 UNITS INTO THE SKIN DAILY.
10-12 UNITS AFTER BREAKFAST, LUNCH AND DINNER
VIA INSULIN PUMP AROUND 100-150 UNITS DAILY
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Jun 2021 02:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/750902#M236274</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-06-29T02:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: EXTRACT substring from both left and right of specific character within variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/750904#M236276</link>
      <description>&lt;P&gt;If "UNITS" is always preceded by an expression like&amp;nbsp; xxx-yyy, and if that is always the first instance of a dash in INSTRUCTIONS, then you could:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get the first "word" of instructions, where the only word separator is a '-':&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; i.e.&amp;nbsp; &amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;scan(instructions,1,'-')&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; which extracts&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INJECT 35&amp;nbsp; &amp;nbsp; from&amp;nbsp;INJECT 35-40 UNITS INTO THE SKIN DAILY&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;From the results of #1, get the last word (where words are now separated by blanks).&amp;nbsp; Note the -1 below means to get the last word of the expression)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;scan(....,-1,'&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt; ')&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;which extracts&amp;nbsp;&amp;nbsp;&amp;nbsp;35 from&amp;nbsp; &amp;nbsp;INJECT 35&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;The output of #2, when converted from text to numeric, produces the lower range&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;lowerng=input(...,best12.)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Do the analogous operation to get the upper range.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input instructions $50.;
datalines;
INJECT 35-40 UNITS INTO THE SKIN DAILY 
INJECT 45-70 UNITS INTO THE SKIN DAILY.
10-12 UNITS AFTER BREAKFAST, LUNCH AND DINNER
VIA INSULIN PUMP AROUND 100-150 UNITS DAILY
run;
data want;
  set have;
  lowerng= input(scan(scan(instructions,1,'-'),-1,' '),best12.);
  upperng= input(scan(scan(instructions,2,'-'),+1,' '),best12.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 03:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/750904#M236276</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-06-29T03:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: EXTRACT substring from both left and right of specific character within variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/750908#M236279</link>
      <description>&lt;P&gt;Function substr() does not work like what you made up.&lt;/P&gt;
&lt;P&gt;Read the documentation.&lt;/P&gt;
&lt;P&gt;The third parameter is the length. You always want 5 in your case.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 05:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/750908#M236279</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-06-29T05:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: EXTRACT substring from both left and right of specific character within variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/751333#M236500</link>
      <description>That works.&lt;BR /&gt;Thanx.&lt;BR /&gt;Had a bad experience with scan function on this data and best10. - don't remember what the error was - but I should have persevered.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2021 18:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXTRACT-substring-from-both-left-and-right-of-specific-character/m-p/751333#M236500</guid>
      <dc:creator>Jumboshrimps</dc:creator>
      <dc:date>2021-06-30T18:38:06Z</dc:date>
    </item>
  </channel>
</rss>

