<?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: Why i can not add Concatenate in between FOR ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1709230#M591805</link>
    <description>&lt;P&gt;One more to try, using Concatenate.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET vDevelopment = 0; //server = 0 // =2 for PY NEW NB // 1 FOR PY OLD NB
IF $(vDevelopment) = 0 THEN
SET vRAWPath = 'C:\Users\pauly\Dropbox\QV_RAW_ISDN\'; //server folder
SET vFile200 = 'GL_PM.CSV';
SET vFile261 = 'FS_TDS_ADL.TXT';
else
END IF

For Each i in '$(vFile200)'
tabOut:
LOAD
'$(i)' as SOURCE_,
[GL Code],
[Customer/Vendor Name]
FROM
$(vRAWPath)$(i)
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);
NEXT i;

// SECTION (A) Concatenate

For Each i in '$(vFile261)'
Concatenate (tabOut)
LOAD
'$(i)' as SOURCE_,
ApplyMap('MAP_TDS_OTH_INCOME',[@1:16T],'OTH_INCOME') as [oTH_INCOME],
if(@102:103T = '-',@86:101T*-1,@86:101T)*-1 as [Amount] // This will join the sign and AMT and create new var = AMOUNT.
FROM
$(vRAWPath)$(i)
(ansi, fix, no labels, header is 0, record is line);
NEXT i;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 09 Jun 2020 01:51:05 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2020-06-09T01:51:05Z</dc:date>
    <item>
      <title>Why i can not add Concatenate in between FOR ?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1702755#M591802</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Below script work fine :-&lt;/P&gt;&lt;P&gt;SET vDevelopment = 0; //server = 0 // =2 for PY NEW NB // 1 FOR PY OLD NB&lt;BR /&gt;IF $(vDevelopment) = 0 THEN&lt;BR /&gt;SET vRAWPath = 'C:\Users\pauly\Dropbox\QV_RAW_ISDN\'; //server folder&lt;BR /&gt;SET vFile200 = 'GL_PM.CSV';&lt;BR /&gt;SET vFile261 = 'FS_TDS_ADL.TXT';&lt;BR /&gt;else&lt;BR /&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;For Each i in '$(vFile200)'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;'$(i)' as SOURCE_,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;[GL Code],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;[Customer/Vendor Name]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;FROM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;$(vRAWPath)$(i)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;NEXT i;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;// SECTION (A) &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Concatenate&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;For Each i in '$(vFile261)'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;'$(i)' as SOURCE_,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;ApplyMap('MAP_TDS_OTH_INCOME',[@1:16T],'OTH_INCOME') as [oTH_INCOME],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;if(@102:103T = '-',@86:101T*-1,@86:101T)*-1 as [Amount] // This will join the sign and AMT and create new var = AMOUNT.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;FROM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;$(vRAWPath)$(i)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;(ansi, fix, no labels, header is 0, record is line);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;NEXT i;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;When i add Concatenate at section (A)&lt;/P&gt;&lt;P&gt;i get error msg below :-&lt;/P&gt;&lt;P&gt;Unknown statement&lt;BR /&gt;Concatenate&lt;/P&gt;&lt;P&gt;Can some one advise me where go wrong ?&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 06:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1702755#M591802</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-05-17T06:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why i can not add Concatenate in between FOR ?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1702884#M591803</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Where I have done this in the past I have similar to;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;For Each i in '$(vFile261)'
Concatenate (tablename)
LOAD&lt;/LI-CODE&gt;&lt;P&gt;Where I have explicitly named my table in the previous load (I am assuming you are trying to concatenate the File200's with the File261s).&lt;/P&gt;&lt;P&gt;I've seen quite a few examples where for the first load in the 'For' the explicit naming of the table is done, then for the remaining tables the concatenate.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 16:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1702884#M591803</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2020-05-17T16:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why i can not add Concatenate in between FOR ?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1709229#M591804</link>
      <description>&lt;P&gt;Can you try this one? Just added a Table name (tabOut).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET vDevelopment = 0; //server = 0 // =2 for PY NEW NB // 1 FOR PY OLD NB
IF $(vDevelopment) = 0 THEN
SET vRAWPath = 'C:\Users\pauly\Dropbox\QV_RAW_ISDN\'; //server folder
SET vFile200 = 'GL_PM.CSV';
SET vFile261 = 'FS_TDS_ADL.TXT';
else
END IF

For Each i in '$(vFile200)'
tabOut:
LOAD
'$(i)' as SOURCE_,
[GL Code],
[Customer/Vendor Name]
FROM
$(vRAWPath)$(i)
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);
NEXT i;

// SECTION (A) Concatenate

For Each i in '$(vFile261)'
tabOut:
LOAD
'$(i)' as SOURCE_,
ApplyMap('MAP_TDS_OTH_INCOME',[@1:16T],'OTH_INCOME') as [oTH_INCOME],
if(@102:103T = '-',@86:101T*-1,@86:101T)*-1 as [Amount] // This will join the sign and AMT and create new var = AMOUNT.
FROM
$(vRAWPath)$(i)
(ansi, fix, no labels, header is 0, record is line);
NEXT i;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 01:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1709229#M591804</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-06-09T01:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why i can not add Concatenate in between FOR ?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1709230#M591805</link>
      <description>&lt;P&gt;One more to try, using Concatenate.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET vDevelopment = 0; //server = 0 // =2 for PY NEW NB // 1 FOR PY OLD NB
IF $(vDevelopment) = 0 THEN
SET vRAWPath = 'C:\Users\pauly\Dropbox\QV_RAW_ISDN\'; //server folder
SET vFile200 = 'GL_PM.CSV';
SET vFile261 = 'FS_TDS_ADL.TXT';
else
END IF

For Each i in '$(vFile200)'
tabOut:
LOAD
'$(i)' as SOURCE_,
[GL Code],
[Customer/Vendor Name]
FROM
$(vRAWPath)$(i)
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);
NEXT i;

// SECTION (A) Concatenate

For Each i in '$(vFile261)'
Concatenate (tabOut)
LOAD
'$(i)' as SOURCE_,
ApplyMap('MAP_TDS_OTH_INCOME',[@1:16T],'OTH_INCOME') as [oTH_INCOME],
if(@102:103T = '-',@86:101T*-1,@86:101T)*-1 as [Amount] // This will join the sign and AMT and create new var = AMOUNT.
FROM
$(vRAWPath)$(i)
(ansi, fix, no labels, header is 0, record is line);
NEXT i;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Jun 2020 01:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1709230#M591805</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-06-09T01:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why i can not add Concatenate in between FOR ?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1709231#M591806</link>
      <description>Hi Sir&lt;BR /&gt;&lt;BR /&gt;Your mind very flexible.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2020 01:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1709231#M591806</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-06-09T01:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why i can not add Concatenate in between FOR ?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1717995#M591807</link>
      <description>&lt;P&gt;If one of the two posts Saran left you got you a working solution, we would appreciate it if you would return to the thread and use the Accept as Solution button on the post that you used for the working solution to give them credit for the assistance and let other Members know what worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 15:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-i-can-not-add-Concatenate-in-between-FOR/m-p/1717995#M591807</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-06-11T15:47:09Z</dc:date>
    </item>
  </channel>
</rss>

