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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
yoxler
Contributor III
Contributor III

Split a unorganized file

Hi,

 

From a internal system I get a file which actually contains two different kinds of data set, here is an example:

FIRST_CASE;543;43f;fds;654;fdsa;20190201122514;654;TEXT;ETC;543.434
SECOND_CASE;20190201122514;HELLO WORLD;1532
FIRST_CASE;543;43f;fds;654;fdsa;20190201122514;654;TEXT;ETC;543.434
SECOND_CASE;20190201122514;HELLO WORLD;1532

 

Since all attibutes after the first are different I need to put the data in two different files, one with FIRST_CASE and one with SECOND_CASE.

 

What is the best way to solve this?

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

You can use tFileInputFullRow to get each row as a sigle field then separate each record depending on how the line starts (you may use a tMap for that)

View solution in original post

3 Replies
TRF
Champion II
Champion II

You can use tFileInputFullRow to get each row as a sigle field then separate each record depending on how the line starts (you may use a tMap for that)

akumar2301
Specialist II
Specialist II

You could use tFileInputMSdelimited 

 

0683p000009M3DB.jpg

yoxler
Contributor III
Contributor III
Author

Thank you both!