Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
oasis2000
Contributor II
Contributor II

Change to "null" (string) in a big matrix

Hi,

I have a .tab file which contains a "table" with +700 columns and 3M rows, more or less. I want to replace all the blanks in the different "cells" with the word "null"

Is there a way to loop throught the rows and / or columns and do some tjava program or something like that so I don't have to do it manually on a tmap?

Thanx

Labels (2)
1 Reply
msjian
Employee
Employee

hello

you can design a job as follows:

msjian_0-1710469339118.png

 

for example:
my input data format as follows: the field separate is “;”
1;Mr;msjian;;a
2;Mr;msjian;;b

but in the job, the tFileInputDelimited and tFileInputDelimited components, set its field separate to "#", that means will make all the line data as one column, then set tJavaRow components code as above to do a replacement, the output file may is your want as follows:
1;Mr;msjian;null;a
2;Mr;msjian;null;b

the sample job see attachment file

Thanks
Jian