<?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 [resolved] Unable to use context variable in tSCPList in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unable-to-use-context-variable-in-tSCPList/m-p/2309878#M81061</link>
    <description>Hi, 
&lt;BR /&gt;I'm trying to pick out specific files from a Unix directory using tSCPList and tSCPGet components 
&lt;BR /&gt;I'm able to get the required file if the name is typed in explicity 
&lt;BR /&gt;eg: "find /opt/net/tmfrge/var/filestore/ -name '*witi298c782b8196b9dea1e09a8b'" 
&lt;BR /&gt;However, for my requiremnt, the filename will be dynamic - sourced from a database. 
&lt;BR /&gt;The code is: 
&lt;BR /&gt;tMySQLinput -&amp;gt;tFlowToIterate -&amp;gt;tJava -&amp;gt;tSCPFileList -&amp;gt;tSCPGet 
&lt;BR /&gt;In the tJava, the required filename is being set to a context variable so that it can be used in the command as below: 
&lt;BR /&gt;"find /opt/net/tmfrge/var/filestore/ -name &amp;nbsp;'context.raw_file_id'" 
&lt;BR /&gt;where: 
&lt;BR /&gt;context.raw_file_id="*"+((String)globalMap.get("row3.rawfileid")); 
&lt;BR /&gt;An example of context.raw_file_id printed in the tJava is *witi298c782b8196b9dea1e09a8b 
&lt;BR /&gt;When the context variable is given in the command, the the job executes but does not get any file.I've tried using '+context.raw_file_id+','$context.raw_file_id' but none of them seem to work. 
&lt;BR /&gt;Am I missing something in the syntax of the context variable or is this not supported? I'm using Talend Open studio for Big Data(6.0.0.20150702_1326) 
&lt;BR /&gt;Please help.</description>
    <pubDate>Tue, 25 Aug 2015 08:53:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-08-25T08:53:43Z</dc:date>
    <item>
      <title>[resolved] Unable to use context variable in tSCPList</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unable-to-use-context-variable-in-tSCPList/m-p/2309878#M81061</link>
      <description>Hi, 
&lt;BR /&gt;I'm trying to pick out specific files from a Unix directory using tSCPList and tSCPGet components 
&lt;BR /&gt;I'm able to get the required file if the name is typed in explicity 
&lt;BR /&gt;eg: "find /opt/net/tmfrge/var/filestore/ -name '*witi298c782b8196b9dea1e09a8b'" 
&lt;BR /&gt;However, for my requiremnt, the filename will be dynamic - sourced from a database. 
&lt;BR /&gt;The code is: 
&lt;BR /&gt;tMySQLinput -&amp;gt;tFlowToIterate -&amp;gt;tJava -&amp;gt;tSCPFileList -&amp;gt;tSCPGet 
&lt;BR /&gt;In the tJava, the required filename is being set to a context variable so that it can be used in the command as below: 
&lt;BR /&gt;"find /opt/net/tmfrge/var/filestore/ -name &amp;nbsp;'context.raw_file_id'" 
&lt;BR /&gt;where: 
&lt;BR /&gt;context.raw_file_id="*"+((String)globalMap.get("row3.rawfileid")); 
&lt;BR /&gt;An example of context.raw_file_id printed in the tJava is *witi298c782b8196b9dea1e09a8b 
&lt;BR /&gt;When the context variable is given in the command, the the job executes but does not get any file.I've tried using '+context.raw_file_id+','$context.raw_file_id' but none of them seem to work. 
&lt;BR /&gt;Am I missing something in the syntax of the context variable or is this not supported? I'm using Talend Open studio for Big Data(6.0.0.20150702_1326) 
&lt;BR /&gt;Please help.</description>
      <pubDate>Tue, 25 Aug 2015 08:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unable-to-use-context-variable-in-tSCPList/m-p/2309878#M81061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-25T08:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unable to use context variable in tSCPList</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unable-to-use-context-variable-in-tSCPList/m-p/2309879#M81062</link>
      <description>Hi All,&lt;BR /&gt;Figured out a syntax error:&lt;BR /&gt;it should be :"&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;find /opt/net/tmfrge/var/filestore/&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;-name "+context.raw_file_id+""&lt;BR /&gt;This will let the value from the context variable to be read.&lt;BR /&gt;It is resolved.&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 25 Aug 2015 14:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unable-to-use-context-variable-in-tSCPList/m-p/2309879#M81062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-25T14:07:17Z</dc:date>
    </item>
  </channel>
</rss>

