<?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: Unable to use the Global map ((String)globalMap.get(&amp;quot;row1.column1&amp;quot;)) in SELECT Query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-use-the-Global-map-String-globalMap-get-quot-row1/m-p/2226054#M18102</link>
    <description>&lt;P&gt;Yes, it gives output. It's just hardcode value and coming as same year used in Where clause.&lt;/P&gt;
&lt;P&gt;So, query look like as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT 2019 ,VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_CD,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_YEAR,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_PERIOD,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_WORKNG_DAYS,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_UPDTD_BY,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_UPDTD_DT,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_UPDTD_BY_ROLE&lt;BR /&gt;FROM VMRCTTA1.VMRRCNTRY_WORKNG_DAYS&lt;BR /&gt;where CNTRY_CD='531'&lt;BR /&gt;and CNTRY_YEAR= 2019;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2019 15:12:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-22T15:12:10Z</dc:date>
    <item>
      <title>Unable to use the Global map ((String)globalMap.get("row1.column1")) in SELECT Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-use-the-Global-map-String-globalMap-get-quot-row1/m-p/2226052#M18100</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt; 
&lt;P&gt;We are unable to use Global variable in Select query.&lt;/P&gt; 
&lt;P&gt;"SELECT&lt;FONT color="#3366ff"&gt;" + ((Integer)globalMap.get("out1.EXTRT_YEAR")) +"&lt;/FONT&gt; ,VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_CD,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_YEAR,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_PERIOD,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_WORKNG_DAYS,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_UPDTD_BY,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_UPDTD_DT,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_UPDTD_BY_ROLE&lt;BR /&gt;FROM VMRCTTA1.VMRRCNTRY_WORKNG_DAYS&lt;BR /&gt;where CNTRY_CD='" +((String)globalMap.get("out1.EXTRT_CNTRY_CD")) + "'&lt;BR /&gt;and CNTRY_YEAR= " + ((Integer)globalMap.get("out1.EXTRT_YEAR")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;IN where clause it works fine.Please suggest.&lt;/P&gt; 
&lt;P&gt;Here is the error on execution.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;[statistics] connected&lt;BR /&gt;Exception in component tDBInput_2 (DUmmy_test)&lt;BR /&gt;com.ibm.db2.jcc.am.SqlException: [jcc][10103][10941][3.66.46] Method executeQuery cannot be used for update. ERRORCODE=-4476, SQLSTATE=null&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="Error_1.JPG" style="width: 876px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7rM.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144061i871FE34438C4BA10/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7rM.jpg" alt="0683p000009M7rM.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-use-the-Global-map-String-globalMap-get-quot-row1/m-p/2226052#M18100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use the Global map ((String)globalMap.get("row1.column1")) in SELECT Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-use-the-Global-map-String-globalMap-get-quot-row1/m-p/2226053#M18101</link>
      <description>What if you try the same query (with the same value) from outside TOS? Is there a result or no rows?</description>
      <pubDate>Tue, 22 Oct 2019 13:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-use-the-Global-map-String-globalMap-get-quot-row1/m-p/2226053#M18101</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-22T13:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use the Global map ((String)globalMap.get("row1.column1")) in SELECT Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-use-the-Global-map-String-globalMap-get-quot-row1/m-p/2226054#M18102</link>
      <description>&lt;P&gt;Yes, it gives output. It's just hardcode value and coming as same year used in Where clause.&lt;/P&gt;
&lt;P&gt;So, query look like as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT 2019 ,VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_CD,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_YEAR,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_PERIOD,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_WORKNG_DAYS,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_UPDTD_BY,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_UPDTD_DT,&lt;BR /&gt;VMRCTTA1.VMRRCNTRY_WORKNG_DAYS.CNTRY_UPDTD_BY_ROLE&lt;BR /&gt;FROM VMRCTTA1.VMRRCNTRY_WORKNG_DAYS&lt;BR /&gt;where CNTRY_CD='531'&lt;BR /&gt;and CNTRY_YEAR= 2019;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 15:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-use-the-Global-map-String-globalMap-get-quot-row1/m-p/2226054#M18102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-22T15:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use the Global map ((String)globalMap.get("row1.column1")) in SELECT Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-use-the-Global-map-String-globalMap-get-quot-row1/m-p/2226055#M18103</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Even though its an integer in the SQL statement, when you are formulating the statement, the data for the year should be concatenated as a string with the rest of the SQL statement. So the best idea will be to do a quick conversion of data to a String Global variable and then do the concatenation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 02:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-use-the-Global-map-String-globalMap-get-quot-row1/m-p/2226055#M18103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T02:29:02Z</dc:date>
    </item>
  </channel>
</rss>

