<?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: Context variables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204769#M5513</link>
    <description>&lt;P&gt;Hi Vincent,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; If you dont mind, could you publish the entire SQL you are using in the Informix? A sample query is also fine. Just want to make sure that you are using the SQL and the context variables in the right way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
    <pubDate>Mon, 03 Dec 2018 07:09:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-03T07:09:59Z</dc:date>
    <item>
      <title>Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204764#M5508</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using Talend V6.4.1 Integration with an Informix database.&lt;BR /&gt;I would like to concatenate 2 context variables in a tELTInformixMap.&lt;BR /&gt;For example :&lt;BR /&gt;My first variable is equal to 'CM0' (context.CM0)&lt;BR /&gt;My second variable is equal to '87' (context.CAISSE)&lt;BR /&gt;I would like to get 'CM087' to insert it in an informix table.&lt;BR /&gt;I tried all kinds of writing but none give me the expected result.&lt;BR /&gt;The last try is the following script: 'context.CM0 + context.CAISSE'&lt;BR /&gt;Which gives as result: 'CM0+87' (incorrect)&lt;BR /&gt;&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 06:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204764#M5508</guid>
      <dc:creator>vincent5</dc:creator>
      <dc:date>2018-12-03T06:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204765#M5509</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Please remove single quotes. Just try&amp;nbsp;&lt;SPAN&gt;context.CM0 + context.CAISSE&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Since it is a variable, you should not add any quotes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; If the answer has helped you, could you please mark the topic as resolved? Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 06:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204765#M5509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T06:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204766#M5510</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00570000004XKOQAA4"&gt;@vincent&lt;/A&gt;,if you were using a tmap in your data flow ,you can use in tmap below way.in tjavarow also you can do .&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1G9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143839iB59BFA8936752DB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1G9.png" alt="0683p000009M1G9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 06:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204766#M5510</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-12-03T06:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204767#M5511</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The job crashes with this message:&lt;/P&gt;&lt;P&gt;java.sql.SQLException: Column (cm0) not found in any table in the query (or SLV is undefined).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204767#M5511</guid>
      <dc:creator>vincent5</dc:creator>
      <dc:date>2018-12-03T07:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204768#M5512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep in mind that when you're using ELT components you're basically writing SQL code instead of Java.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll need to use the CONCAT(expr1,expr2) function as defined in informix SQL. In your example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CONCAT(context.CM0,&lt;/SPAN&gt;&lt;SPAN&gt;context.CAISSE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The mapper will automatically take care of escaping your context variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me know it this works&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204768#M5512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T07:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204769#M5513</link>
      <description>&lt;P&gt;Hi Vincent,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; If you dont mind, could you publish the entire SQL you are using in the Informix? A sample query is also fine. Just want to make sure that you are using the SQL and the context variables in the right way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204769#M5513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T07:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204770#M5514</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I do not know how it converted the variables but I have a crash when inserting the data in database:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Exception in component agELTInformixOutput_2 (CAC07_TB_1_101_Alim_tmp_collecte_AC_CCOL)&lt;BR /&gt;java.sql.SQLException: Column (cm0) not found in any table in the query (or SLV is undefined).&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3453)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3770)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2576)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2492)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1360)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.informix.jdbc.IfxPreparedStatement.e(IfxPreparedStatement.java:320)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.informix.jdbc.IfxPreparedStatement.a(IfxPreparedStatement.java:300)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.informix.jdbc.IfxPreparedStatement.&amp;lt;init&amp;gt;(IfxPreparedStatement.java:170)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.informix.jdbc.IfxSqliConnect.h(IfxSqliConnect.java:6523)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.informix.jdbc.IfxSqliConnect.prepareStatement(IfxSqliConnect.java:2334)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tmap.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1GN.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139058iE852C298704CA0BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1GN.jpg" alt="0683p000009M1GN.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204770#M5514</guid>
      <dc:creator>vincent5</dc:creator>
      <dc:date>2018-12-03T07:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204771#M5515</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The sql code with the concat gives this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"SELECT&lt;BR /&gt;distinct substr('" +context.DATE_TRT+ "',1,4)-1, CONCAT (" +context.CM0+ ", " +context.CAISSE+ "), opt.nsirent, opt.lsirent, opt.noc, nvl(dlu.ndpt_lin_unq,'" +context.CAISSE+ "'), opt.npdt, ident.nent, ident.neta, adh.badhcol, adh.fadhcol, opt.noptcol, opt.voptcol, case when ( to_char(adh.fadhcol,'%Y') &amp;gt;= substr('" +context.DATE_TRT+ "',1,4)) then 1 else 0 end, case when ( to_char(adh.badhcol,'%Y') = substr('" +context.DATE_TRT+ "',1,4)-1) then 1 else 0 end, case when ( to_char(adh.fadhcol,'%Y') = substr('" +context.DATE_TRT+ "',1,4)-1) then 1 else 0 end, '" +context.DATE_TRT+ "'&lt;BR /&gt;FROM&lt;BR /&gt;&amp;nbsp;cac87:acgestopt opt INNER JOIN&amp;nbsp; cac87:acgestadh adh ON(&amp;nbsp; adh.nordcle = opt.nordcle )&lt;BR /&gt;&amp;nbsp;INNER JOIN&amp;nbsp; cac87:acgestident ident ON(&amp;nbsp; ident.nidtadhcol = adh.nidtadhcol&amp;nbsp; AND&amp;nbsp; ident.norgrsp = adh.norgrsp&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;LEFT OUTER JOIN&amp;nbsp; com87:dlu dlu ON(&amp;nbsp; dlu.nide = ident.nent&amp;nbsp; )&lt;BR /&gt;WHERE&lt;BR /&gt;&amp;nbsp; opt.npdt IS NOT NULL&lt;BR /&gt;&amp;nbsp;AND (to_char(adh.badhcol,'%Y') &amp;gt;= substr('" +context.DATE_TRT+ "',1,4)-1 OR&amp;nbsp; to_char(adh.fadhcol,'%Y') &amp;gt;=&amp;nbsp; substr('" +context.DATE_TRT+ "',1,4)-1 )"&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204771#M5515</guid>
      <dc:creator>vincent5</dc:creator>
      <dc:date>2018-12-03T07:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204772#M5516</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00570000004XKOQAA4"&gt;@vincent&lt;/A&gt;,i do not understand why you are giving contexts in single quotes,quotes are not needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example:-&lt;/P&gt;
&lt;P&gt;substing(context.abc,1,4)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204772#M5516</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-12-03T07:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204773#M5517</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00570000004XKOQAA4"&gt;@vincent&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please refer the places where you are having issues.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0qd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153614iFACC0A75A232FDEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0qd.png" alt="0683p000009M0qd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204773#M5517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T07:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204774#M5518</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the "ELTInformixMap '" I do not put a single or double quotation mark, they are added by Talend in the SQL code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204774#M5518</guid>
      <dc:creator>vincent5</dc:creator>
      <dc:date>2018-12-03T07:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204775#M5519</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The context variables used alone work very well, but when I want to concatenate two of them, it does not work.&lt;BR /&gt;The problem lies in the screen copy in the concat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204775#M5519</guid>
      <dc:creator>vincent5</dc:creator>
      <dc:date>2018-12-03T07:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204776#M5520</link>
      <description>&lt;P&gt;Hi Vincent,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; I would suggest you to see the code tab also so that you can understand the places where you are having the java errors. The errors are happening because the current code is having single quotes for variables. You will have to remove them and verify the code before running the job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204776#M5520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T07:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204777#M5521</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Informix components have been developed specifically for us, I do not know if they have been made available in Talend for everyone.&lt;BR /&gt;Should we review this component to remove quotes or double quotes?&lt;BR /&gt;We have just migrated to version 6.4.1 and in the previous version (5.2.2) we did not have this problem.&lt;BR /&gt;&lt;BR /&gt;The sql code generated by the comoposant talend of CONCAT (context.CM0, context.CAISSE):&lt;BR /&gt;&lt;BR /&gt;GlobalMap&lt;BR /&gt;.put ("tELTInformixMap_1" + "QUERY" + "table1",&lt;BR /&gt;"SELECT distinct substr ('"&lt;BR /&gt;+ context.DATE_TRT&lt;BR /&gt;+ "', 1.4) -1, CONCAT ("&lt;BR /&gt;+ context.CM0&lt;BR /&gt;+ ","&lt;BR /&gt;+ context.CAISSE&lt;BR /&gt;+ "),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vincent&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2204777#M5521</guid>
      <dc:creator>vincent5</dc:creator>
      <dc:date>2018-12-03T07:31:23Z</dc:date>
    </item>
  </channel>
</rss>

