<?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 When does Verbatim = 0 make Trim() unnecessary? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/When-does-Verbatim-0-make-Trim-unnecessary/m-p/1688628#M52538</link>
    <description>&lt;P&gt;I got into the habit of using Trim() in my load scripts for text fields, but I just stumbled across &lt;A href="https://help.qlik.com/en-US/sense/February2020/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/Verbatim.htm" target="_self"&gt;this page about the Verbatim system variable&lt;/A&gt;, which states:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Verbatim&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Normally all field values are automatically stripped of leading and trailing blanks (ASCII 32) before being loaded into the Qlik Sense database. Setting this variable to 1 suspends the stripping of blanks.&lt;/P&gt;&lt;P&gt;So now I'm wondering when Trim() is useful vs redundant.&amp;nbsp; I don't know when data is "loaded into the Qlik Sense database," so I am wondering:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If I loaded a table and then reloaded it using Resident, would the values in that already-loaded table have been trimmed by that point?&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;What if I made use of &lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/preceding-load.htm" target="_self"&gt;preceding loads&lt;/A&gt;?&amp;nbsp; Would columns get trimmed between each load?&lt;/LI&gt;&lt;LI&gt;What if I joined one table to another?&amp;nbsp; Would the key columns that were used to do the join get trimmed automatically prior to the joining operation?&lt;/LI&gt;&lt;LI&gt;I assume if I wanted to convert nulls, zero-length strings, and whitespace-only strings to some value, I would still have to do this kind of thing when loading the field (as opposed to leaving the Trim() out of it), right?&amp;nbsp; If(Len(Trim(myField)), myField, 'NONE') AS&amp;nbsp;myField&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
    <dc:creator>mmarchese</dc:creator>
    <dc:date>2021-12-20T21:32:42Z</dc:date>
    <item>
      <title>When does Verbatim = 0 make Trim() unnecessary?</title>
      <link>https://community.qlik.com/t5/App-Development/When-does-Verbatim-0-make-Trim-unnecessary/m-p/1688628#M52538</link>
      <description>&lt;P&gt;I got into the habit of using Trim() in my load scripts for text fields, but I just stumbled across &lt;A href="https://help.qlik.com/en-US/sense/February2020/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/Verbatim.htm" target="_self"&gt;this page about the Verbatim system variable&lt;/A&gt;, which states:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Verbatim&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Normally all field values are automatically stripped of leading and trailing blanks (ASCII 32) before being loaded into the Qlik Sense database. Setting this variable to 1 suspends the stripping of blanks.&lt;/P&gt;&lt;P&gt;So now I'm wondering when Trim() is useful vs redundant.&amp;nbsp; I don't know when data is "loaded into the Qlik Sense database," so I am wondering:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If I loaded a table and then reloaded it using Resident, would the values in that already-loaded table have been trimmed by that point?&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;What if I made use of &lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/preceding-load.htm" target="_self"&gt;preceding loads&lt;/A&gt;?&amp;nbsp; Would columns get trimmed between each load?&lt;/LI&gt;&lt;LI&gt;What if I joined one table to another?&amp;nbsp; Would the key columns that were used to do the join get trimmed automatically prior to the joining operation?&lt;/LI&gt;&lt;LI&gt;I assume if I wanted to convert nulls, zero-length strings, and whitespace-only strings to some value, I would still have to do this kind of thing when loading the field (as opposed to leaving the Trim() out of it), right?&amp;nbsp; If(Len(Trim(myField)), myField, 'NONE') AS&amp;nbsp;myField&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-does-Verbatim-0-make-Trim-unnecessary/m-p/1688628#M52538</guid>
      <dc:creator>mmarchese</dc:creator>
      <dc:date>2021-12-20T21:32:42Z</dc:date>
    </item>
  </channel>
</rss>

