Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
sbxr
Contributor III
Contributor III

Text file having Pipe separator.

Hi All,

 

I have a text file which is four columns in which three columns are separated  by comma(","). But the fourth column is separated by pipe("|"). how can we move this input to a output delimited file with only comma(",") separated values .

Input:

a, b, c | d

Output:

a,b,c,d

 

Thanks

Labels (1)
  • v7.x

1 Solution

Accepted Solutions
vapukov
Master II
Master II

it always depend from real situation

  • is pipe always in same place?
  • is data could contain legal pipe (especially in last 2 columns)

 

in simple ways as described:

- read file as 3 column,

- after split last column with tExtractDelimitedFields

use "\\|" as delimiter 

 

 0683p000009M10v.png

0683p000009M0we.png

0683p000009M1C7.png

 

View solution in original post

1 Reply
vapukov
Master II
Master II

it always depend from real situation

  • is pipe always in same place?
  • is data could contain legal pipe (especially in last 2 columns)

 

in simple ways as described:

- read file as 3 column,

- after split last column with tExtractDelimitedFields

use "\\|" as delimiter 

 

 0683p000009M10v.png

0683p000009M0we.png

0683p000009M1C7.png