<?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: [resolved] Read data by months, Iterate? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351738#M118326</link>
    <description>Hi Pedro
&lt;BR /&gt;Yes, I changed it and I have only one month in it.
&lt;BR /&gt;My csv file looks like this:
&lt;BR /&gt;
&lt;PRE&gt;01-02-2003;&lt;/PRE&gt;
&lt;BR /&gt;Maybe I have to write the month in another format?
&lt;BR /&gt;The schema field is Data type.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Khor</description>
    <pubDate>Thu, 15 Mar 2012 10:04:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-15T10:04:01Z</dc:date>
    <item>
      <title>[resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351729#M118317</link>
      <description>Hi,
&lt;BR /&gt;I have the following scenario:
&lt;BR /&gt;tOracleInput ---------&amp;gt; tMap ---------&amp;gt; tOracleOutput
&lt;BR /&gt; |
&lt;BR /&gt;tOracleInput --------------|
&lt;BR /&gt;The issue is that the connection where I take the data from with tOracleInput is really bad, and I have cuts in that connection.
&lt;BR /&gt;Some of the tables have many rows that I have to take, so I wan't to take the data from the big tables month by month using one of the date fields in the table, but I don't know how to achieve it, maybe a context variable and iterating?
&lt;BR /&gt;Can someone guide me on how to do it?
&lt;BR /&gt;Thanks in advance,
&lt;BR /&gt;Regards,
&lt;BR /&gt;Khor</description>
      <pubDate>Wed, 14 Mar 2012 10:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351729#M118317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-14T10:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351730#M118318</link>
      <description>Hi Khor 
&lt;BR /&gt;I don't know what this job does in tMap. 
&lt;BR /&gt;But according to your requirement, you can create part of your job as follow. 
&lt;BR /&gt;tFixedFlowInput--main--&amp;gt;tJavaRow 
&lt;BR /&gt; | 
&lt;BR /&gt; Iterate 
&lt;BR /&gt; | 
&lt;BR /&gt; tOracleInput---&amp;gt;other components... 
&lt;BR /&gt;tFixedFlowInput: Check "Use Inline Table" and type all months which you want to extract. 
&lt;BR /&gt;tJavaRow: type nothing in it. 
&lt;BR /&gt;tOracleInput: edit the Query like this. 
&lt;BR /&gt; 
&lt;PRE&gt;"select ColumnName1, ColumnName2...from TableName where Date_Field ="+row1.Month&lt;/PRE&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 15 Mar 2012 02:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351730#M118318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T02:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351731#M118319</link>
      <description>Hi Pedro,
&lt;BR /&gt;Thanks for your reply, I tried to reproduce what you say but I failed. When I try to run the job I get an error saying that it can't turn a int to a BigDecimal or to a Date. I know that one of the things that i have wrong is how I put the month in tFixedFlowInput but I can't guess how to do it.
&lt;BR /&gt;The final objective of this is not to show the data of one month with tLogRow, I used it just to know it it would work with the big job.
&lt;BR /&gt;See screenshot below for more information.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Khor</description>
      <pubDate>Thu, 15 Mar 2012 08:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351731#M118319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T08:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351732#M118320</link>
      <description>Hi Khor&lt;BR /&gt;You can use tFileInputDelimited to load a file instead of tFixedFlowInput.&lt;BR /&gt;Then you will get rid of this error.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 15 Mar 2012 08:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351732#M118320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T08:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351733#M118321</link>
      <description>Hi Pedro,
&lt;BR /&gt;I can now execute my job using "TalendDate.parseDate("dd-MM-yyyy","01-02-2003")" in tFixedFlowInput, but now I get a Oracle error but I see the query ok.
&lt;BR /&gt;Error: 
&lt;PRE&gt;Exception in component tOracleInput_1&lt;BR /&gt;java.sql.SQLException: ORA-00933&lt;/PRE&gt;
&lt;BR /&gt;Query: 
&lt;PRE&gt;"SELECT &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.ID_OPERACION, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.CAMION, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.EP, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.ET, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.ST, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.SP&lt;BR /&gt;FROM HL_STG_STK.PRUEBA_CAMIONES_OUT&lt;BR /&gt;WHERE HL_STG_STK.PRUEBA_CAMIONES_OUT.ET="+row1.Month+""&lt;/PRE&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Khor</description>
      <pubDate>Thu, 15 Mar 2012 09:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351733#M118321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T09:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351734#M118322</link>
      <description>Hi Pedro,&lt;BR /&gt;I get another error with this one too. Like the quotes are not well placed. Don't you open quotes two times and close three in your code?&lt;BR /&gt;Regards,&lt;BR /&gt;Khor</description>
      <pubDate>Thu, 15 Mar 2012 09:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351734#M118322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T09:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351735#M118323</link>
      <description>Hi Khor
&lt;BR /&gt;I have corrected my last post and remove double quotation marks.
&lt;BR /&gt;One more thing. Use tFileInputDelimted instead of tFixedFlowInput.
&lt;BR /&gt;There is something wrong with Iterate of tFixedFlowInput.
&lt;BR /&gt;The error ORA-00933 is due to tFixedFlowInput and the data type of this column.
&lt;BR /&gt;You won't get any error this time.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 15 Mar 2012 09:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351735#M118323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T09:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351736#M118324</link>
      <description>Hi Pedro&lt;BR /&gt;I'm getting the same error (ORA-00933) without quotes.&lt;BR /&gt;Regards,&lt;BR /&gt;Khor</description>
      <pubDate>Thu, 15 Mar 2012 09:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351736#M118324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T09:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351737#M118325</link>
      <description>Hi&lt;BR /&gt;Have you changed tFixedFlowInput into tFileInputDelimited?&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 15 Mar 2012 10:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351737#M118325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T10:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351738#M118326</link>
      <description>Hi Pedro
&lt;BR /&gt;Yes, I changed it and I have only one month in it.
&lt;BR /&gt;My csv file looks like this:
&lt;BR /&gt;
&lt;PRE&gt;01-02-2003;&lt;/PRE&gt;
&lt;BR /&gt;Maybe I have to write the month in another format?
&lt;BR /&gt;The schema field is Data type.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Khor</description>
      <pubDate>Thu, 15 Mar 2012 10:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351738#M118326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T10:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351739#M118327</link>
      <description>Hi
&lt;BR /&gt;I solved the errors by changing the schema of tFileInputDelimited from date to string and writing the query like this:
&lt;BR /&gt;
&lt;PRE&gt;"SELECT &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.ID_OPERACION, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.CAMION, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.EP, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.ET, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.ST, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.SP&lt;BR /&gt;FROM HL_STG_STK.PRUEBA_CAMIONES_OUT&lt;BR /&gt;WHERE HL_STG_STK.PRUEBA_CAMIONES_OUT.ET=to_date('"+row1.Month+"', 'yyyy/mm/dd hh24:mi:ss')"&lt;/PRE&gt;
&lt;BR /&gt;Now the problem is that I read 0 rows but I guess that's a problem with my data or my database so thank you for all your help Pedro.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Khor</description>
      <pubDate>Thu, 15 Mar 2012 10:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351739#M118327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T10:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Read data by months, Iterate?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351740#M118328</link>
      <description>Hi
&lt;BR /&gt;
&lt;PRE&gt;SELECT &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.ID_OPERACION, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.CAMION, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.EP, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.ET, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.ST, &lt;BR /&gt;  HL_STG_STK.PRUEBA_CAMIONES_OUT.SP&lt;BR /&gt;FROM HL_STG_STK.PRUEBA_CAMIONES_OUT&lt;BR /&gt;WHERE HL_STG_STK.PRUEBA_CAMIONES_OUT.ET=to_date('"+row1.Month+"', 'dd-MM-yyyy')"&lt;/PRE&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 15 Mar 2012 10:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Read-data-by-months-Iterate/m-p/2351740#M118328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T10:21:38Z</dc:date>
    </item>
  </channel>
</rss>

