<?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: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000391#M646640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That make sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Dec 2015 11:13:45 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-11T11:13:45Z</dc:date>
    <item>
      <title>LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000388#M646637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need some help with getting some files stored to QVD but removing some characters from the data and field names. &lt;/P&gt;&lt;P&gt;there are over 500 files in total, i can do it manually but it will be very time consuming as each file has different field names ( i can't get * to work).&lt;/P&gt;&lt;P&gt;basically the field names are in the format of &lt;/P&gt;&lt;P&gt;@@FIELD1@@&lt;/P&gt;&lt;P&gt;@@FIELD2@@&lt;/P&gt;&lt;P&gt;@@FIELD3@@&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the data held against each field is in the same format, i.e...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@@FIELD1@@&lt;/P&gt;&lt;P&gt;@@VALUE1@@&lt;/P&gt;&lt;P&gt;@@VALUE2@@&lt;/P&gt;&lt;P&gt;@@VALUE3@@&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, the last field in in each file has a SPACE before the last 2@@ i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[@@FIELD40@@ ]&lt;/P&gt;&lt;P&gt;the space also needs to be removed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example, can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 10:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000388#M646637</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2015-12-11T10:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000389#M646638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really understand, your qvw does seem to work. What is the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 10:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000389#M646638</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-11T10:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000390#M646639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, yes the sample i uploaded does work. what i am asking though is there a quick way of doing the same thing for over 500 files, all with different fields. &lt;/P&gt;&lt;P&gt;otherwise i have to load each file int the script, perform a find and replace @@ with nothing, remove the space from the last field name and edit the delimiter to @@|@@ manually which will be very time consuming. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 11:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000390#M646639</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2015-12-11T11:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000391#M646640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That make sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 11:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000391#M646640</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-11T11:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000392#M646641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;You can remove the special characters in field values using mapsubstring. Here is an example,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;ReplaceMap:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;MAPPING LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;char, replace&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;@,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;TestData:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;*,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;MapSubString('ReplaceMap', data) as ReplacedString,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;MapSubString('ReplaceMap', data1) as ReplacedString1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;data,data1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;@@@AAA@@@,@@123@&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;@@@BBB@@@,@@345@@@&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;@CCC@@@,@1111@&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;@@@DDD@,@@@22@&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I am not sure how we can do for all field names.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Sivaraj&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 13:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000392#M646641</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2015-12-11T13:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000393#M646642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does anyone have any ideas on how i can do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 15:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000393#M646642</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2015-12-11T15:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000394#M646643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hi Hopkinsc,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14500711915676402" jivemacro_uid="_14500711915676402" modifiedtitle="true"&gt;
&lt;P&gt;Sub ScanFolder(Root)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For Each FileExtension in 'txt'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; For Each FoundFile in FileList( Root &amp;amp; '\*.' &amp;amp; FileExtension)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;SubField('$(FoundFile)','\',SubStringCount('$(FoundFile)','\')+1) as FileName,&lt;/P&gt;
&lt;P&gt;Trim(Replace (@@CVCRCD@@,&amp;nbsp; '@@','')) as CVCRCD,&lt;/P&gt;
&lt;P&gt;Trim(Replace (@@CVDL01@@,&amp;nbsp; '@@','')) as CVDL01,&lt;/P&gt;
&lt;P&gt;Trim(Replace (@@CVEC@@,&amp;nbsp;&amp;nbsp;&amp;nbsp; '@@','')) as CVEC,&lt;/P&gt;
&lt;P&gt;Trim(Replace (@@CVCDEC@@,&amp;nbsp; '@@','')) as CVCDEC,&lt;/P&gt;
&lt;P&gt;Trim(Replace (@@CVCKR@@,&amp;nbsp;&amp;nbsp; '@@','')) as CVCKR,&lt;/P&gt;
&lt;P&gt;Trim(Replace (@@CVUSER@@,&amp;nbsp; '@@','')) as CVUSER,&lt;/P&gt;
&lt;P&gt;Trim(Replace (@@CVPID@@,&amp;nbsp;&amp;nbsp; '@@','')) as CVPID, &lt;/P&gt;
&lt;P&gt;Trim(Replace (@@CVUPMJ@@,&amp;nbsp; '@@','')) as CVUPMJ,&lt;/P&gt;
&lt;P&gt;Trim(Replace (@@CVJOBN@@,&amp;nbsp; '@@','')) as CVJOBN,&lt;/P&gt;
&lt;P&gt;Trim(Replace ([@@CVUPMT@@],'@@','')) as CVUPMT&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[$(FoundFile)]&lt;/P&gt;
&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is '|', msq);&lt;/P&gt;
&lt;P&gt;Next FoundFile&lt;/P&gt;
&lt;P&gt;Next FileExtension&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Call ScanFolder('C:\Users\Tamilarasu.Nagaraj\Desktop\Test_196312') ;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108889_Capture.PNG" style="height: 279px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Sample application attached against your data. Let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 05:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000394#M646643</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-12-14T05:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000395#M646644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/196515"&gt;remove ## from field names&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 23:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000395#M646644</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-12-15T23:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000396#M646645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The Purgechar and SubField functions might be useful to you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currencies:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;PurgeChar(SubField(@1,'|',1),'@') as Abbreviation,&lt;/P&gt;&lt;P&gt;PurgeChar(SubField(@1,'|',2),'@')&amp;nbsp; &amp;amp; ' ' &amp;amp; @2 as Currency;&lt;/P&gt;&lt;P&gt;LOAD @1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Data1.txt&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ' ', msq) Where RecNo()&amp;gt;1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives this table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Abbreviation&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Currency&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;ESP&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Spanish Peseta&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;EUR&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Euro &lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;FRF&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;French Franc&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;GBP&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Pounds Sterling&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;ITL&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Italian Lira&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;PLZ&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Polish Zloty&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;PTE&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Portugese Escudo&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;USD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;U.S.A. Dollar&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 08:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000396#M646645</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-12-16T08:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000397#M646646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew / Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. unfortunately this isnt the answer as the data was provided to me using a custom delimiter of @@|@@ because the data values include pipes. so if i strip out the @ characters and use a pipe as a delimiter then this would cause problems with the pipes that are supposed to be present in the values. (if that makes sense).&lt;/P&gt;&lt;P&gt;What i need is to strip out all @ from the field names, store out and read back in using the @@|@@ delimiter. &lt;/P&gt;&lt;P&gt;unless there is another way where i don't have to read in each file twice. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 09:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000397#M646646</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2015-12-16T09:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000398#M646647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can set &lt;SPAN style="font-size: 13.3333px;"&gt;'@@|@@' as the delimiter, we're not restricted to single characters. Then after the delimiter's done it's job we can wrap the expression in a PurgeChar:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currencies:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;PurgeChar(SubField(@1,'@@|@@',1),'@') as Abbreviation,&lt;/P&gt;&lt;P&gt;PurgeChar(SubField(@1,'@@|@@',2),'@')&amp;nbsp; &amp;amp; ' ' &amp;amp; @2 as Currency;&lt;/P&gt;&lt;P&gt;LOAD @1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Data1.txt&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ' ', msq) Where RecNo()&amp;gt;1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;For getting rid of the '@' character from tablenames and fieldnames try something like this. The script loops through the tables and field to construct a couple of mapping tables to rename the tables and fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = 0 to NoOfTables()-1&lt;/P&gt;&lt;P&gt;Let vTblName = TableName($(i));&lt;/P&gt;&lt;P&gt;Let vNewTblName = PurgeChar('$(vTblName)','@');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableNameMap:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;'$(vTblName)' as OldName,&lt;/P&gt;&lt;P&gt;'$(vNewTblName)' as NewName&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For k = 1 to NoOfFields('$(vTblName)')&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vFieldName = FieldName($(k), '$(vTblName)');&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vNewFieldName = PurgeChar('$(vFieldName)','@');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FieldNameMap:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Mapping&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vFieldName)' as OldFieldName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vNewFieldName)' as NewFieldName&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; NEXT k&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RENAME Tables using 'TableNameMap';&lt;/P&gt;&lt;P&gt;RENAME Fields using 'FieldNameMap';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 09:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000398#M646647</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-12-16T09:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP THROUGH FILES IN FOLDER AND REMOVE CHARACTERS FROM FIELD NAMES AND DATA</title>
      <link>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000399#M646648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without reading a file twice:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_196515_Pic3.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109379_QlikCommunity_Thread_196515_Pic3.JPG" style="height: 156px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14503960297244532 jive_text_macro" jivemacro_uid="_14503960297244532"&gt;
&lt;P&gt;tabTemp:&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IterNo() as SeqNo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(RawData,'@@|@@',IterNo()) as SubRawData&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=SubStringCount(RawData,'@@|@@')+1;&lt;/P&gt;
&lt;P&gt;LOAD Mid([@1:n],3,Len([@1:n])-4) as RawData&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="201901" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2003-196515-933463-201901/Data1.txt"&gt;https://community.qlik.com/servlet/JiveServlet/download/933463-201901/Data1.txt&lt;/A&gt;&lt;SPAN&gt;] (fix, utf8);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;mapFieldNames:&lt;/P&gt;
&lt;P&gt;Mapping LOAD SeqNo, SubRawData Resident tabTemp&lt;/P&gt;
&lt;P&gt;Where ID=1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabTemp2:&lt;/P&gt;
&lt;P&gt;Generic&lt;/P&gt;
&lt;P&gt;LOAD ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SeqNo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubRawData&lt;/P&gt;
&lt;P&gt;Resident tabTemp&lt;/P&gt;
&lt;P&gt;Where ID&amp;gt;1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabFinal:&lt;/P&gt;
&lt;P&gt;LOAD Distinct ID&lt;/P&gt;
&lt;P&gt;Resident tabTemp&lt;/P&gt;
&lt;P&gt;Where ID&amp;gt;1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tabTemp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = NoOfTables()-1 to 0 STEP -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vTable=TableName($(i));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; IF WildMatch('$(vTable)', 'tabTemp2.*') THEN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LEFT JOIN (tabFinal) LOAD * RESIDENT [$(vTable)];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; DROP TABLE [$(vTable)];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ENDIF&lt;/P&gt;
&lt;P&gt;NEXT i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RENAME Fields using mapFieldNames;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Field ID;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using some &lt;A href="http://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/" title="http://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/"&gt;code&lt;/A&gt; from &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;rwunderlich&lt;/A&gt; to recombine the tables created by the generic load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 23:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOOP-THROUGH-FILES-IN-FOLDER-AND-REMOVE-CHARACTERS-FROM-FIELD/m-p/1000399#M646648</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-12-17T23:51:41Z</dc:date>
    </item>
  </channel>
</rss>

