<?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: File Data Type: Dynamic - Execute awk command on tSystem to store the output in a file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/File-Data-Type-Dynamic-Execute-awk-command-on-tSystem-to-store/m-p/2355323#M121095</link>
    <description>&lt;P&gt;I cannot define the schema explicitly. Therefore might not be able to use compliance check component&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 06:30:29 GMT</pubDate>
    <dc:creator>jaink</dc:creator>
    <dc:date>2018-07-17T06:30:29Z</dc:date>
    <item>
      <title>File Data Type: Dynamic - Execute awk command on tSystem to store the output in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Data-Type-Dynamic-Execute-awk-command-on-tSystem-to-store/m-p/2355321#M121093</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to check that the number of fields in a file is as expected. As i am using dynamic data type, i am not able to check the same using getCountColumn() function, as it always takes the max number of fields present.&lt;BR /&gt;&lt;BR /&gt;Therefore, as a workaround thought of using awk and storing the rows which matches the expected number of fields to a file.&lt;BR /&gt;Also, it is needed to store the non matching rows to a file.&lt;BR /&gt;&lt;BR /&gt;Example -&amp;nbsp;&lt;BR /&gt;source file - a.txt (data type defined as dynamic)&lt;BR /&gt;A,B,C&lt;BR /&gt;1,2,3&lt;BR /&gt;4,5,6,7&lt;BR /&gt;8,9&lt;BR /&gt;&lt;BR /&gt;tSystem1 --&amp;gt; (main) tSystem2&lt;BR /&gt;Executed command - "" on tSystem&lt;BR /&gt;"/bin/bash -c awk -F, '{if(NF == 2) print $0 }' a.txt &amp;gt; b.txt"&lt;BR /&gt;&lt;BR /&gt;But this command is not executed only i guess, because when executed, the command is passed as - '/&lt;SPAN&gt;bin/bash -c awk -F,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'{if(NF == 2) print $0 }' a.txt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Please let me know if there is any other solution for the same, or what changes are needed in the existing code?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Data-Type-Dynamic-Execute-awk-command-on-tSystem-to-store/m-p/2355321#M121093</guid>
      <dc:creator>jaink</dc:creator>
      <dc:date>2024-11-16T07:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: File Data Type: Dynamic - Execute awk command on tSystem to store the output in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Data-Type-Dynamic-Execute-awk-command-on-tSystem-to-store/m-p/2355322#M121094</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOaYAAW"&gt;@kritikajain24&lt;/A&gt;,can you try to use tSchemaComplianceCheck?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;please go-though the below link to more about&amp;nbsp;&lt;SPAN&gt;tSchemaComplianceCheck&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/g8zdjVE7fWNUh3u4ztO6Dw/dmSJyJcYe2p5cHIsy22nnw" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/g8zdjVE7fWNUh3u4ztO6Dw/dmSJyJcYe2p5cHIsy22nnw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 06:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Data-Type-Dynamic-Execute-awk-command-on-tSystem-to-store/m-p/2355322#M121094</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-07-17T06:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: File Data Type: Dynamic - Execute awk command on tSystem to store the output in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Data-Type-Dynamic-Execute-awk-command-on-tSystem-to-store/m-p/2355323#M121095</link>
      <description>&lt;P&gt;I cannot define the schema explicitly. Therefore might not be able to use compliance check component&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 06:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Data-Type-Dynamic-Execute-awk-command-on-tSystem-to-store/m-p/2355323#M121095</guid>
      <dc:creator>jaink</dc:creator>
      <dc:date>2018-07-17T06:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: File Data Type: Dynamic - Execute awk command on tSystem to store the output in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Data-Type-Dynamic-Execute-awk-command-on-tSystem-to-store/m-p/2355324#M121096</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;Take a look at this article and try the solutions.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/article/ka03p0000006EZwAAM" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Executing-a-Linux-command-with-a-pipe-using-a-tSystem-component/ta-p/21671&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 06:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Data-Type-Dynamic-Execute-awk-command-on-tSystem-to-store/m-p/2355324#M121096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-17T06:36:26Z</dc:date>
    </item>
  </channel>
</rss>

