<?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: Parsing data with values from a lookup table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458872#M116480</link>
    <description>&lt;P&gt;Looking up '&lt;SPAN&gt;coalesce', s&lt;/SPAN&gt;hould I&amp;nbsp;switch&amp;nbsp;LOOKUP with SOURCE.DATA_STRING in the code, like below?&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; create table REPORT as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*ZZ&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;this line of code evaluate to&amp;nbsp;&lt;/SPAN&gt;LOOKUP.DOMAIN?*/&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select coalesce( LOOKUP.DOMAIN, SOURCE.DATA_STRING ) as DOMAIN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*ZZ&amp;nbsp;Will this line of code evaluate to LOOKUP.FIELDNAME?*/&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , coalesce( LOOKUP.FIELDNAME, SOURCE.DATA_STRING ) as FIELD_NAME&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;/*ZZ&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;this line of code evaluate to&amp;nbsp;&lt;/SPAN&gt;LOOKUP.LABEL?*/&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;, coalesce( LOOKUP.LABEL, SOURCE.DATA_STRING ) as FIELD_LABEL&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;from SOURCE&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;left join LOOKUP&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;on index(SOURCE.DATA_STRING, LOOKUP.FIELDNAME) &amp;gt; 0&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;and index(SOURCE.DATA_STRING, LOOKUP.DOMAIN ) &amp;gt; 0;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ZZ&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 23:42:04 GMT</pubDate>
    <dc:creator>zz</dc:creator>
    <dc:date>2018-04-30T23:42:04Z</dc:date>
    <item>
      <title>Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458822#M116461</link>
      <description>&lt;P&gt;I am trying to create a report based on two datasets (Source and Lookup tables).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a source&amp;nbsp;table that contains the&amp;nbsp;source data.&amp;nbsp; I need to parse out the &lt;SPAN&gt;Domain, Field Name, and Field Label from each row of string in the source table and write them out to report;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is also a look-up table that contains exact values of Domain, Field Name and Field Label that I need to parse out from each row of the source table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;One row of source string&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CM_ING T21, , LCHGDATE ( DATETIME20 ))^n |&amp;nbsp; DATE/TIME OF LAST VISIT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;One row of values from the lookup table:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CM_ING(Note: Domain), LCHGDATE(Note: Field Name), DATE/TIME OF LAST VISIT(Note: Field Label)&amp;nbsp; in one of three columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How could I best do this efficiently?&amp;nbsp; Any help is greatly appreciate it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your input / help!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 20:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458822#M116461</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2018-04-30T20:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458856#M116470</link>
      <description>&lt;P&gt;If I understand correctly, the lookup table is used to filter the main table.&lt;/P&gt;
&lt;P&gt;If so, you can do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  select source.* 
  from       SOURCE
  inner join LOOKUP
  on  source.CM_ING    = lookup.CM_ING 
  and source.LCHGDATE  = lookup.LCHGDATE 
  and source.VISITDATE = lookup.VISITDATE ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 21:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458856#M116470</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-30T21:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458860#M116472</link>
      <description>&lt;P&gt;Thank you, Chris!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;did not describe very clearly what I wanted the program to do.&amp;nbsp; Here may be the code to show the program logic:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA REPORT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SET SOURCE;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Loop through&amp;nbsp;LOOKUP table ...&lt;/P&gt;
&lt;P&gt;TMP_DOMAIN=LOOKUP.DOMAIN;&lt;/P&gt;
&lt;P&gt;TMP_NAME=LOOKUP.FIELDNAME;&lt;/P&gt;
&lt;P&gt;TMP_LABLE=LOOKUP.LABEL;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF ( INDEX(SOURCE.STRINGFIELD,&amp;nbsp;&lt;SPAN&gt;TMP_&lt;/SPAN&gt;&lt;SPAN&gt;DOMAIN&lt;/SPAN&gt;) &amp;gt; 0 AND INDEX(SOURCE.STRINGFIELD, &lt;SPAN&gt;TMP_&lt;/SPAN&gt;&lt;SPAN&gt;NAME&lt;/SPAN&gt;) &amp;gt; 0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;THEN DO;&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; SOURCE.DOMAIN=&lt;SPAN&gt;TMP_&lt;/SPAN&gt;&lt;SPAN&gt;DOMAIN&lt;/SPAN&gt;;&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; SOURCE.FIELDNAME=LOOKUP.FIELDNAME;&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; SOURCE.FIELDLABEL=LOOKUP.LABEL;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;END;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;NEXT ROW (LOOKUP);&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In essence, if the source string contains the value in Lookup table, takes the domain, field name and field label value and add them to the Source table (parsing the domains, field names and field labels from the string of the source table).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure how to code the looping of LOOKUP table;&amp;nbsp; I am also afraid the code may be very inefficient looping and compare each row in SOURCE with that in LOOKUP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for your input and help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ZZ&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 22:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458860#M116472</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2018-04-30T22:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458866#M116475</link>
      <description>&lt;P&gt;Your pseudo is still confusing.&lt;/P&gt;
&lt;P&gt;Since this isn't a key join (because you use the index function) the default is a Cartesian product join, which is expensive.&lt;/P&gt;
&lt;P&gt;Is the performance of something like this acceptable?&lt;/P&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;proc sql;
  create table REPORT as
&amp;nbsp; select coalesce(LOOKUP.&lt;SPAN&gt;FIELDNAME&lt;/SPAN&gt;, SOURCE.&lt;SPAN&gt;FIELDNAME&lt;/SPAN&gt;)&amp;nbsp;as &lt;SPAN&gt;FIELDNAME&lt;/SPAN&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,coalesce(LOOKUP.DOMAIN   , SOURCE.DOMAIN   ) as&amp;nbsp;DOMAIN
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,coalesce(LOOKUP.LABEL    , SOURCE.LABEL    ) as&amp;nbsp;LABEL
&amp;nbsp; from SOURCE
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;  left join 
       LOOKUP&amp;nbsp;
         on&amp;nbsp; index(SOURCE.&lt;SPAN&gt;FIELDNAME&lt;/SPAN&gt;,&amp;nbsp;LOOKUP.&lt;SPAN&gt;FIELDNAME&lt;/SPAN&gt;) &amp;gt; 0
         and index(SOURCE.DOMAIN   , LOOKUP.DOMAIN   ) &amp;gt; 0;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 23:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458866#M116475</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-30T23:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458870#M116478</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I did not make it clear that there is no SOURCE.DOMAIN, SOURCE.FIELDNAME, and SORUCE.FIELDLABEL fields in the SOURCE table.&amp;nbsp; The source table has a string field, by looking in the source string (INDEX) for the domain / fieldname values from the LOOKUP table , I know what the value will be for these fields in the report - those matching LOOKUP fields.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of 'parsing out' the value that matched the field values from LOOKUP, I will take the values from LOOKUP directly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope&amp;nbsp;the below make sense:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; create table REPORT as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*ZZ &lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;this line of code evaluate to&amp;nbsp;&lt;/SPAN&gt;LOOKUP.DOMAIN?*/&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select coalesce( SOURCE.DATA_STRING, LOOKUP.DOMAIN ) as DOMAIN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*ZZ&amp;nbsp;Will this line of code evaluate to LOOKUP.FIELDNAME?*/&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , coalesce( SOURCE.DATA_STRING, LOOKUP.FIELDNAME ) as FIELD_NAME&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;/*ZZ &lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;this line of code evaluate to&amp;nbsp;&lt;/SPAN&gt;LOOKUP.LABEL?*/&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;, coalesce( SOURCE.DATA_STRING, LOOKUP.LABEL ) as FIELD_LABEL&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;from SOURCE&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;left join LOOKUP &lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;on index(SOURCE.DATA_STRING, LOOKUP.FIELDNAME) &amp;gt; 0&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;and index(SOURCE.DATA_STRING, LOOKUP.DOMAIN ) &amp;gt; 0;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ZZ&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 23:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458870#M116478</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2018-04-30T23:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458871#M116479</link>
      <description>&lt;P&gt;I know it will be inefficient.&amp;nbsp; I can live with it for now&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>Mon, 30 Apr 2018 23:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458871#M116479</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2018-04-30T23:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458872#M116480</link>
      <description>&lt;P&gt;Looking up '&lt;SPAN&gt;coalesce', s&lt;/SPAN&gt;hould I&amp;nbsp;switch&amp;nbsp;LOOKUP with SOURCE.DATA_STRING in the code, like below?&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; create table REPORT as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*ZZ&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;this line of code evaluate to&amp;nbsp;&lt;/SPAN&gt;LOOKUP.DOMAIN?*/&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select coalesce( LOOKUP.DOMAIN, SOURCE.DATA_STRING ) as DOMAIN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*ZZ&amp;nbsp;Will this line of code evaluate to LOOKUP.FIELDNAME?*/&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , coalesce( LOOKUP.FIELDNAME, SOURCE.DATA_STRING ) as FIELD_NAME&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;/*ZZ&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;this line of code evaluate to&amp;nbsp;&lt;/SPAN&gt;LOOKUP.LABEL?*/&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;, coalesce( LOOKUP.LABEL, SOURCE.DATA_STRING ) as FIELD_LABEL&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;from SOURCE&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;left join LOOKUP&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;on index(SOURCE.DATA_STRING, LOOKUP.FIELDNAME) &amp;gt; 0&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;and index(SOURCE.DATA_STRING, LOOKUP.DOMAIN ) &amp;gt; 0;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ZZ&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 23:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458872#M116480</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2018-04-30T23:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458873#M116481</link>
      <description>&lt;P&gt;You should.&lt;/P&gt;
&lt;P&gt;Just give it a go and see if you get what you expect.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 23:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458873#M116481</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-30T23:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458877#M116485</link>
      <description>Great!  Will test it next and let you know how it goes.  Many thanks, Chris!</description>
      <pubDate>Tue, 01 May 2018 00:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/458877#M116485</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2018-05-01T00:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/459094#M116569</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested the code. Unfortunately, it did not work. I am trying to update the code. Will let you know as soon as I get it to work. Thanks again, and a good day to you!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;zz&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 20:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/459094#M116569</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2018-05-01T20:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing data with values from a lookup table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/459164#M116593</link>
      <description>&lt;P&gt;Yes let us know.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 01:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-data-with-values-from-a-lookup-table/m-p/459164#M116593</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-05-02T01:47:47Z</dc:date>
    </item>
  </channel>
</rss>

