Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
ravirao68
Contributor II
Contributor II

DB2 Varchar replicate to SQL table - not able to replicate all content - it takes up to a NULL value

we have a DB2 table which has a VARCHAR(1800).  This field stores different data values using COBOL copy structures.  The data has EBCDIC Values.  NULL values exist within the data values and the data is VALID.

The following is the Input & Output in the Table Settings (Transformation)

INPUT:

Name: VARDATA

Type: STRING

Character Set : IBM-37_P100-1995

OUTPUT:

Name: VARDATA

Type: STRING

Subtype: Regular

Expression: None

 

When we replicate this table, column VARDATA in the source endpoint is copied to target - data copied is only till the first NULL value and rest are not copied/replicated.  

Is there a way for us to copy the entire VARCHAR 1800 bytes ASIS to the target.  

Labels (1)
1 Solution

Accepted Solutions
ravirao68
Contributor II
Contributor II
Author

While checking in SSMS using SQL Query, I could see only till the NULL character.  However, when I did BCP, I can see the whole data.

It is working as expected.  

Sorry for the inconvenience caused.

View solution in original post

4 Replies
john_wang
Support
Support

Hello @ravirao68 ,

Welcome to Qlik Community forum and thanks for reaching out here!

Would you please share the Replicate version and build number? eg Replicate 2023.11.0.282.

Thanks,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
ravirao68
Contributor II
Contributor II
Author

The Replicate Version is V2023.11.0.159.

ravirao68
Contributor II
Contributor II
Author

While checking in SSMS using SQL Query, I could see only till the NULL character.  However, when I did BCP, I can see the whole data.

It is working as expected.  

Sorry for the inconvenience caused.

john_wang
Support
Support

Thank you for your excellent support! @ravirao68 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!