<?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: Is it possible to pass Talend Routine in a SQL Query? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-pass-Talend-Routine-in-a-SQL-Query/m-p/2368573#M131824</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;theoretically it is possible to do it but it is not advised.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to have an additional step above with a tSetVarGlobal with the &lt;/P&gt;&lt;P&gt;key = "lastDay ..."&lt;/P&gt;&lt;P&gt;value = TalendDate.getLastDayOfMonth (TalendDate.addDate (TalendDate.getCurrentDate (), - 1, "MM"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, when you call the stored procedure, you're just going to use the global variable &lt;/P&gt;&lt;P&gt;(with a ((datetime)globalMap.get("myKey")))&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2020 12:25:38 GMT</pubDate>
    <dc:creator>JohnRMK</dc:creator>
    <dc:date>2020-07-20T12:25:38Z</dc:date>
    <item>
      <title>Is it possible to pass Talend Routine in a SQL Query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-pass-Talend-Routine-in-a-SQL-Query/m-p/2368572#M131823</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am wondering if it is possible to pass the value from the Talend Routine as a parameter to my PostgreSQL stored procedure. So the routine I am trying to use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"TalendDate.getLastDayOfMonth(TalendDate.addDate(TalendDate.getCurrentDate(),-1,"MM") )". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to pass the value into this query: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;""CALL &amp;lt;stored procedure&amp;gt;('&amp;lt;date value&amp;gt;')"&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;J.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-pass-Talend-Routine-in-a-SQL-Query/m-p/2368572#M131823</guid>
      <dc:creator>jtai168</dc:creator>
      <dc:date>2024-11-16T01:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass Talend Routine in a SQL Query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-pass-Talend-Routine-in-a-SQL-Query/m-p/2368573#M131824</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;theoretically it is possible to do it but it is not advised.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to have an additional step above with a tSetVarGlobal with the &lt;/P&gt;&lt;P&gt;key = "lastDay ..."&lt;/P&gt;&lt;P&gt;value = TalendDate.getLastDayOfMonth (TalendDate.addDate (TalendDate.getCurrentDate (), - 1, "MM"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, when you call the stored procedure, you're just going to use the global variable &lt;/P&gt;&lt;P&gt;(with a ((datetime)globalMap.get("myKey")))&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 12:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-pass-Talend-Routine-in-a-SQL-Query/m-p/2368573#M131824</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-07-20T12:25:38Z</dc:date>
    </item>
  </channel>
</rss>

