<?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: Migrating DB2 CLOB Data Type into MSSQL Server in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328289#M97584</link>
    <description>&lt;P&gt;Okay so for now I am running the job on my laptop so using the Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The client is using DB2 version 9.7 FP2 , so I managed to locate it and download it from the IBM website.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;doing a quick search on my local talend studio, I can see that there is a db2jcc.jar file in the C:\Talend\Talend-Studio-20151214_1327-V6.1.1\workspace\.Java\lib&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so I can back up this copy (i.e. move to another location: c:\temp) and then copy the new db2jcc4.jar and re-start the studio....that should it right ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway Thanks for all your help Richard.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 14:52:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-31T14:52:47Z</dc:date>
    <item>
      <title>Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328278#M97573</link>
      <description>&lt;P&gt;Using Talend Studio 6.1.1, I am trying 'migrate' a DB2 Table (Table definition and data) into a MS SQL Server.&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="db2_mssql_server.png" style="width: 403px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lrhs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153345i4369B163A26F7042/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lrhs.png" alt="0683p000009Lrhs.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The DB2 Table has a column that is of type CLOB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Talend, by default maps this type to MSSQL type of VARBINARY&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="mapping1.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lret.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140841i6D93F8CC0CDDE670/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lret.png" alt="0683p000009Lret.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;when I run this, I get the following error:&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&lt;EM&gt;Starting job filestatus_table_test at 10:42 29/01/2018.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;[statistics] connecting to socket on port 3518&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;[statistics] connected&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;Exception in component tMSSqlOutput_1&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;java.sql.SQLException: The size (1073741824) given to the column 'DETAILS' exceeds the maximum allowed for any data type (8000).&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:372)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2988)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2421)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:671)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:613)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:572)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.JtdsStatement.executeImpl(JtdsStatement.java:809)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.JtdsStatement.execute(JtdsStatement.java:1282)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at datamart2.filestatus_table_test_0_1.filestatus_table_test.tDB2Input_1Process(filestatus_table_test.java:1385)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at datamart2.filestatus_table_test_0_1.filestatus_table_test.runJobInTOS(filestatus_table_test.java:2614)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at datamart2.filestatus_table_test_0_1.filestatus_table_test.main(filestatus_table_test.java:2068)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;[FATAL]: datamart2.filestatus_table_test_0_1.filestatus_table_test - tMSSqlOutput_1 The size (1073741824) given to the column 'DETAILS' exceeds the maximum allowed for any data type (8000).&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;[statistics] disconnected&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&lt;EM&gt;Job filestatus_table_test ended at 10:42 29/01/2018. [exit code=1]&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As per Microsoft’s ‘&lt;A href="http://download.microsoft.com/download/A/1/F/A1F3381F-F80F-4913-AACA-A2BC06423C51/Guide_to_Migrating_from_DB2_to_SQL_Server_and_Azure_SQL_DB.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;Guide To Migrating from DB2 to SQL Server’&lt;/A&gt;, see section 2.3.3, it states that: “…The best choice for migrating DB2 large object types (LOBs) such as CLOB(n) is SQL Server varchar(max) data type…”.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So I tried the VARCHAR2 Mapping:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mapping2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ls8i.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142160i7FE49498CC44217B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ls8i.png" alt="0683p000009Ls8i.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But I still get the following error:&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&lt;EM&gt;Starting job filestatus_table_test at 10:50 29/01/2018.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;[statistics] connecting to socket on port 3372&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;[statistics] connected&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;Exception in component tMSSqlOutput_1&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;java.sql.SQLException: Unable to convert between com.ibm.db2.jcc.am.ke and JAVA_OBJECT.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.Support.convert(Support.java:632)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.setObjectBase(JtdsPreparedStatement.java:590)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.setObject(JtdsPreparedStatement.java:907)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at datamart2.filestatus_table_test_0_1.filestatus_table_test.tDB2Input_1Process(filestatus_table_test.java:1628)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;[FATAL]: datamart2.filestatus_table_test_0_1.filestatus_table_test - tMSSqlOutput_1 Unable to convert between com.ibm.db2.jcc.am.ke and JAVA_OBJECT.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at datamart2.filestatus_table_test_0_1.filestatus_table_test.runJobInTOS(filestatus_table_test.java:2536)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at datamart2.filestatus_table_test_0_1.filestatus_table_test.main(filestatus_table_test.java:2018)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;[statistics] disconnected&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&lt;EM&gt;Job filestatus_table_test ended at 10:50 29/01/2018. [exit code=1]&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Has anyone migrated a DB2 CLOB to MSSQL Server VARCHAR2 or VARBINARY ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What would be the best and most data type mapping ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Appreciate you help&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Patrice&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328278#M97573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328279#M97574</link>
      <description>&lt;P&gt;Can you try with text in&amp;nbsp;MSSQL Server?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 07:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328279#M97574</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-01-30T07:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328280#M97575</link>
      <description>&lt;P&gt;Yes managed to resolve this by using the DB2's cast API:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the DB2 Input Component's query:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT&amp;nbsp; CAST(&amp;lt;CLOB column&amp;gt; AS VARCHAR(32000))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Table&amp;gt;&lt;/P&gt;
&lt;P&gt;WHERE&amp;nbsp; &amp;lt;condition&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will convert the CLOB into a string of characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is that it only limits to 32000 chars, so if the clob contains more than that, you will lose data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So we are looking into writing a java code that converts the whole clob into a stream of text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Patrice&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 11:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328280#M97575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T11:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328281#M97576</link>
      <description>&lt;P&gt;Here is snippet from a Job where I do this....&lt;/P&gt;&lt;PRE&gt;output_row.clobString = ((java.sql.Clob)input_row.clob).getCharacterStream(1, ((java.sql.Clob)input_row.clob).length());&lt;/PRE&gt;&lt;P&gt;My Clob is output as an Object.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 11:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328281#M97576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T11:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328282#M97577</link>
      <description>&lt;P&gt;Hi Richard&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am afraid I will need more info as I am new to Talend.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So I have DB2Input component that selects several columns and one of the columns is a type CLOB. as one of the schema screen shots shows in the earlier post.&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="clob_to_varchar_job.png" style="width: 620px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lsq6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138183iC3DD6742EC729D7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lsq6.png" alt="0683p000009Lsq6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The DB2Input&amp;nbsp; component and schema is:&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="db2_comp.png" style="width: 612px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsWx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144530iBAE8E7AC40907497/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsWx.png" alt="0683p000009LsWx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&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="db2_filestatus_schema.png" style="width: 577px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LscV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143586i7458AD679435755A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LscV.png" alt="0683p000009LscV.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I then have a Custom Java Component connected to the DB2Input Connected, which passes the row of data to the java component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Do I place the java snippet inside the custom java component (convertCLOBtoVARCHAR) ?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="java_comp.png" style="width: 553px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsqB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141476iA5828CC8627F02D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsqB.png" alt="0683p000009LsqB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Or do I create a routine and then instantiate the object it from the component ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you are referring to 'input_row' and 'output_row'. Are these generic references that I can reuse or do I need to adapt them to my object references ?&lt;/P&gt; 
&lt;P&gt;In case of a row with several columns (i.e schema), how do I get a handle on the CLOB column ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The final component is the SQLServerOutput Component that inserts into the table:&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="mssql_server_comp.png" style="width: 658px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsiS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150467i2B9E10CDD7FCAD9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsiS.png" alt="0683p000009LsiS.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Really appreciate your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328282#M97577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T12:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328283#M97578</link>
      <description>&lt;P&gt;You need to use a tJavaRow component. The tJava component is better suited to logging. The tJavaRow allows you to process data rows using a schema. The tJavaRow refers to the input row as "input_row" and the output row as "output_row".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you create a tJavaRow, ensure your schema for that component is configured and add the following code (this should be precisely what you need given what I have seen from your last post), it should work.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;output_row.DETAILS = ((java.sql.Clob)input_row.DETAILS).getCharacterStream(1, ((java.sql.Clob)input_row.DETAILS).length());&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328283#M97578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T12:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328284#M97579</link>
      <description>&lt;P&gt;Thanks Richard&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As per your instructions :&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="java_row.png" style="width: 580px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsqV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136035i6BAC5A85145FF2FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsqV.png" alt="0683p000009LsqV.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The schema mapping in the tJavaRow component is as follows:&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="tJavaRow_Schema_Mapping.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lsp4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137285i8A22A3DC11FEEB17/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lsp4.png" alt="0683p000009Lsp4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It is able to read a row from DB2 and pass the row to the tJavaRow Component&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="tjavaRow_comp1.png" style="width: 876px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsqH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129607i9E53474B04DFF6D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsqH.png" alt="0683p000009LsqH.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I also imported the java clob library, not sure if needed:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tjavaRow_code2.png" style="width: 794px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lso6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148168iD2DDD9E715C4D3A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lso6.png" alt="0683p000009Lso6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;so when running it I get the following error, which suggests that is failing in the 'getCharacterStream' api call.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Starting job filestatus_table_test at 13:07 31/01/2018.

[statistics] connecting to socket on port 3374
[statistics] connected
[statistics] disconnected
Exception in thread "main" java.lang.AbstractMethodError: com.ibm.db2.jcc.am.ke.getCharacterStream(JJ)Ljava/io/Reader;
            at datamart2.filestatus_table_test_0_1.filestatus_table_test.tDB2Input_1Process(filestatus_table_test.java:1979)
            at datamart2.filestatus_table_test_0_1.filestatus_table_test.runJobInTOS(filestatus_table_test.java:2975)
            at datamart2.filestatus_table_test_0_1.filestatus_table_test.main(filestatus_table_test.java:2457)
Job filestatus_table_test ended at 13:07 31/01/2018. [exit code=1]&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks once again for your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328284#M97579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T13:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328285#M97580</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328285#M97580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T13:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328286#M97581</link>
      <description>&lt;P&gt;This looks like this problem (&lt;A href="https://bug.javlin.eu/browse/CLO-2913" target="_blank" rel="nofollow noopener noreferrer"&gt;https://bug.javlin.eu/browse/CLO-2913&lt;/A&gt;). I am not using DB2 when I do this. I am using Oracle. It looks like a Jar may need to be updated. This method will work, it is just down to the Jar being used missing functionality&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328286#M97581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T14:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328287#M97582</link>
      <description>&lt;P&gt;Thanks Richard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I locate and download the JAR, where do I patch it ? on the studio or DB2 server ?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328287#M97582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T14:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328288#M97583</link>
      <description>&lt;P&gt;It's Talend that will need to be patched. That is not generally too difficult. I had to do it with an Oracle Jar a few years back. You just find the old Jar, remove it from it's location and supply your new Jar. I'd check with your support team before doing that though....just to make sure the new Jar is not going to break something else. I used to work for Talend and unless things have changed dramatically, they will give you a relatively quick answer. If it's OK and works, it would be good if you could post about here.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328288#M97583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T14:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating DB2 CLOB Data Type into MSSQL Server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328289#M97584</link>
      <description>&lt;P&gt;Okay so for now I am running the job on my laptop so using the Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The client is using DB2 version 9.7 FP2 , so I managed to locate it and download it from the IBM website.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;doing a quick search on my local talend studio, I can see that there is a db2jcc.jar file in the C:\Talend\Talend-Studio-20151214_1327-V6.1.1\workspace\.Java\lib&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so I can back up this copy (i.e. move to another location: c:\temp) and then copy the new db2jcc4.jar and re-start the studio....that should it right ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway Thanks for all your help Richard.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-DB2-CLOB-Data-Type-into-MSSQL-Server/m-p/2328289#M97584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T14:52:47Z</dc:date>
    </item>
  </channel>
</rss>

