<?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 Data Mapper, use of SetVariable function in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310861#M81948</link>
    <description>&lt;P&gt;What is best practice on where to use the SetVariable input? &amp;nbsp;For every record of the input, we have an HL7 output where we want to put the current date and time (yyyyMMdd_hhmmss), however we want this timestamp to be the same for all records of the input set being sent for the current run. &amp;nbsp;So in other words, we can't have the minutes and seconds change for each record of current run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we just put the SetVariable function in a Value tab of some output we aren't using? &amp;nbsp;Should we put it in the Util tab or some other area?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need it to set the variable just once. &amp;nbsp;The root of our output is a Simple Loop that matches the input root for each record.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2017 16:12:36 GMT</pubDate>
    <dc:creator>mayo</dc:creator>
    <dc:date>2017-08-22T16:12:36Z</dc:date>
    <item>
      <title>Data Mapper, use of SetVariable function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310861#M81948</link>
      <description>&lt;P&gt;What is best practice on where to use the SetVariable input? &amp;nbsp;For every record of the input, we have an HL7 output where we want to put the current date and time (yyyyMMdd_hhmmss), however we want this timestamp to be the same for all records of the input set being sent for the current run. &amp;nbsp;So in other words, we can't have the minutes and seconds change for each record of current run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we just put the SetVariable function in a Value tab of some output we aren't using? &amp;nbsp;Should we put it in the Util tab or some other area?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need it to set the variable just once. &amp;nbsp;The root of our output is a Simple Loop that matches the input root for each record.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 16:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310861#M81948</guid>
      <dc:creator>mayo</dc:creator>
      <dc:date>2017-08-22T16:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper, use of SetVariable function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310862#M81949</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could&amp;nbsp;just update a context variable in your job with this timestamp and then use this context variable in your map ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 16:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310862#M81949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-22T16:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper, use of SetVariable function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310863#M81950</link>
      <description>&lt;P&gt;We could be we wanted to&amp;nbsp;avoid creating a context variable just for this if possible. &amp;nbsp;If there is a way to reference a GlobalMap variable, it would be feasible however.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 16:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310863#M81950</guid>
      <dc:creator>mayo</dc:creator>
      <dc:date>2017-08-22T16:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper, use of SetVariable function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310864#M81951</link>
      <description>&lt;P&gt;You can very well use a global variable that will be available for any component within the current job. You can set it using tSetVar component (or u can also do this within tJava) and access it using globalMap.get("&amp;lt;var_name&amp;gt;")&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 16:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310864#M81951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-22T16:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper, use of SetVariable function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310865#M81952</link>
      <description>&lt;P&gt;Is globalMap available in the Data Mapper though? &amp;nbsp;I have not been successful in referring to that globalMap object within TDM.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310865#M81952</guid>
      <dc:creator>mayo</dc:creator>
      <dc:date>2017-08-22T17:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper, use of SetVariable function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310866#M81953</link>
      <description>&lt;P&gt;Ah..Its the TDM. Did not notice that. I have no experience&amp;nbsp;with TDM but I presume that it must be there in that too. Just note that standard jobs are different from Big data jobs. I presume TDM supports big data jobs (I might be off base here). If your job is a Big data job, then you would not have this. Can you confirm if this is a Standard job?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe if you can share screenshot of your job design, I might be able to understand it.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310866#M81953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-22T17:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper, use of SetVariable function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310867#M81954</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1-Yes you can use a setvariable function on root element:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 340px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvX8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139811i4B1EAC70F50DFB9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvX8.png" alt="0683p000009LvX8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And then use it inside the loop:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 260px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvpD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132289i3DF1D31E7EFC6A70/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvpD.png" alt="0683p000009LvpD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;2-You can use system variables:&lt;/P&gt; 
&lt;P&gt;In you job you use a tSetEnv component:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 811px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvs1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155277i1D35DD1F47406452/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvs1.png" alt="0683p000009Lvs1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Then you can get it in your map:&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="Capture.PNG" style="width: 362px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvuc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132234iABB1CE07BDAF303F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvuc.png" alt="0683p000009Lvuc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;3-I don't know if it is possible to get globalmap variables inside TDM...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 07:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310867#M81954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-23T07:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper, use of SetVariable function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310868#M81955</link>
      <description>&lt;P&gt;Hi eric, sorry for the delayed response and thank you very much for the detailed reply with options, both of which will work for us. You're hired!&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2017 13:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-use-of-SetVariable-function/m-p/2310868#M81955</guid>
      <dc:creator>mayo</dc:creator>
      <dc:date>2017-08-27T13:44:06Z</dc:date>
    </item>
  </channel>
</rss>

