<?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: SQL to Dataflux (NOOB) in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-to-Dataflux-NOOB/m-p/636456#M19056</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Did you try to use the Expression node? The left, len and trim function exist, which could be reused pretty much identically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the type of ColumnA in input? Does it need to be changed to a varchar?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;If not, you can use something like: `ColumnA` = LEFT(TRIM(`ColumnA`),LEN(`ColumnB`))&lt;/LI&gt;
&lt;LI&gt;Otherwise, you might want to add a tostring function: `ColumnA` = LEFT(TRIM(tostring(`ColumnA`)),LEN(`ColumnB`))&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For the second line, only the substring function doesn't exist, it can be replaced by a combination of LEFT and RIGHT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. If you need a more detailed help, do not hesitate to reach out to support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Audrey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2020 07:25:22 GMT</pubDate>
    <dc:creator>audrey</dc:creator>
    <dc:date>2020-04-01T07:25:22Z</dc:date>
    <item>
      <title>SQL to Dataflux (NOOB)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-to-Dataflux-NOOB/m-p/636299#M19055</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help converting this SQL to a Dataflux expression. I am trying to do a comparison between 2 files and old code in SQL used this to compare it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LEFT(LTRIM(RTRIM(cast(COLUMNA as varchar(1000)))),LEN(COLUMNB)) = COLUMNA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LEFT(LTRIM(RTRIM(SUBSTRING( LTRIM(RTRIM(CAST(COLUMNA as varchar(1000)))) , LEN(COLUMNC) + 1&amp;nbsp; ,LEN(cast(COLUMNA as varchar(1000)))-&amp;nbsp; (LEN(@COLUMNC) + 1)&amp;nbsp; ))),LEN(COLUMNB)&amp;nbsp;= COLUMNA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column A is from&amp;nbsp; File A&lt;/P&gt;&lt;P&gt;Column B is from File B.&lt;/P&gt;&lt;P&gt;Column C is from File B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 17:09:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-to-Dataflux-NOOB/m-p/636299#M19055</guid>
      <dc:creator>Vinz867</dc:creator>
      <dc:date>2020-03-31T17:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Dataflux (NOOB)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-to-Dataflux-NOOB/m-p/636456#M19056</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Did you try to use the Expression node? The left, len and trim function exist, which could be reused pretty much identically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the type of ColumnA in input? Does it need to be changed to a varchar?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;If not, you can use something like: `ColumnA` = LEFT(TRIM(`ColumnA`),LEN(`ColumnB`))&lt;/LI&gt;
&lt;LI&gt;Otherwise, you might want to add a tostring function: `ColumnA` = LEFT(TRIM(tostring(`ColumnA`)),LEN(`ColumnB`))&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For the second line, only the substring function doesn't exist, it can be replaced by a combination of LEFT and RIGHT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. If you need a more detailed help, do not hesitate to reach out to support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Audrey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 07:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-to-Dataflux-NOOB/m-p/636456#M19056</guid>
      <dc:creator>audrey</dc:creator>
      <dc:date>2020-04-01T07:25:22Z</dc:date>
    </item>
  </channel>
</rss>

