<?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: Return a value to command line in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244573#M30677</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You may use tDie with a return code.&lt;BR /&gt;In your case, push the result of your select into a global variable, then set the return code using this global variable. It should like:&lt;BR /&gt;(Integer)globalMap.get("yourVariable ")&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
    <pubDate>Tue, 02 May 2017 23:11:45 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-05-02T23:11:45Z</dc:date>
    <item>
      <title>Return a value to command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244571#M30675</link>
      <description>&lt;P&gt;HI ,&lt;/P&gt;
&lt;P&gt;I have requirement to return the value to console .I mean when i call the job .bat file from command line it should return &amp;nbsp;a&lt;/P&gt;
&lt;P&gt;value..Trying to use t java component &amp;nbsp;no success.&lt;/P&gt;
&lt;P&gt;Reading a value from database and i want to return it to command line.Any suggestion to use which componenet&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Ramesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 21:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244571#M30675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-02T21:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Return a value to command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244572#M30676</link>
      <description>&lt;P&gt;if You need just print message to console, You can use tJavaFlex and code like:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;System.out.println("Print message - "+row1.col1);&lt;/PRE&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="Screen Shot 2017-05-03 at 10.09.34 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lsw6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139298iA48F02C15BC27FB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lsw6.png" alt="0683p000009Lsw6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-03 at 10.09.39 AM.png" style="width: 586px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu10.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132167iD5824DC10F86672E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu10.png" alt="0683p000009Lu10.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 23:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244572#M30676</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-05-02T23:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Return a value to command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244573#M30677</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You may use tDie with a return code.&lt;BR /&gt;In your case, push the result of your select into a global variable, then set the return code using this global variable. It should like:&lt;BR /&gt;(Integer)globalMap.get("yourVariable ")&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Tue, 02 May 2017 23:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244573#M30677</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-02T23:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Return a value to command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244574#M30678</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt; wrote: 
 &lt;BR /&gt;Hi, 
 &lt;BR /&gt; 
 &lt;BR /&gt;You may use tDie with a return code. 
 &lt;BR /&gt;In your case, push the result of your select into a global variable, then set the return code using this global variable. It should like: 
 &lt;BR /&gt;(Integer)globalMap.get("yourVariable ") 
 &lt;BR /&gt; 
 &lt;BR /&gt;Regards, 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Yes, it different angle for view&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;all depends how to read:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Reading a value from database and i want to return it to command line&lt;/PRE&gt; 
&lt;P&gt;tDie - kill Job and return only 1 value, but it could be used in script logic&lt;/P&gt; 
&lt;P&gt;if value more than 1 and Job must just display value and continue - need print&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 23:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244574#M30678</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-05-02T23:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Return a value to command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244575#M30679</link>
      <description>Thanks for quick response. I have tried both tjavaflex and tdie components .
&lt;BR /&gt;when i run in studio i see the value are printing.
&lt;BR /&gt;when i to run .bat file command line did't get the return values.
&lt;BR /&gt;do i have do anything to capture return values form command line
&lt;BR /&gt;here is the output i got
&lt;BR /&gt;C:\Users\rkacham\Documents\TalendJobs\tes_0.1\tes&amp;gt;cd C:\Users\rkacham\Documents\TalendJobs\tes_0.3\tes\
&lt;BR /&gt;
&lt;BR /&gt;C:\Users\rkacham\Documents\TalendJobs\tes_0.3\tes&amp;gt;java -Xms256M -Xmx1024M -cp .;../lib/routines.jar;../lib/log4j-1.2.16.jar;../lib/dom4j-1.6.1.jar;../lib/talend_file_enhanced_20070724.jar;tes_0_1.jar; talend_poc1.tes_0_1.tes --context=Default
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 03 May 2017 14:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244575#M30679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-03T14:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Return a value to command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244576#M30680</link>
      <description>&lt;P&gt;could You attach some screenshots of Your Job (code)?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;as You can see from screenshots it work&lt;/P&gt; 
&lt;P&gt;I normally store output direct to log file, so not often use print to console, but it work&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="Screen Shot 2017-05-04 at 2.01.38 AM.png" style="width: 980px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtkG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131660i48F264E6E836BF98/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtkG.png" alt="0683p000009LtkG.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 15:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244576#M30680</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-05-03T15:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Return a value to command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244577#M30681</link>
      <description>&lt;P&gt;Here are the screen shot ,Value is not returning on to console .I have tried in unix and windows.&lt;/P&gt; 
&lt;P&gt;when i run from studio i do get &amp;nbsp;retrun value&lt;/P&gt; 
&lt;P&gt;looks like i am missing some option&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.jpg" style="width: 867px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu28.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145995iDFA7756E860B5ED8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu28.jpg" alt="0683p000009Lu28.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 16:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-a-value-to-command-line/m-p/2244577#M30681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-03T16:23:47Z</dc:date>
    </item>
  </channel>
</rss>

