Hi Scott,
We were just wondering is there a parameter that be set to use a different field delimiter on your CSVINTO parser?
We have a number of files incoming that use Pipe rather than Comma.
Many thanks in advance.
Mick
Passing in alternate field delimiters.
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: Passing in alternate field delimiters.
Currently, no... it always uses a comma.
You can edit the CSVINTO program and change it here:
Change it to:
Naturally you can add the ability to set that value at run-time if you want... you'll have to modify the code to make that work, it's something I've not had a need to do. If you feel that you've done a particularly nice job of it, please contribute it back to the project (post your changes here) so that others can take advantage of it.
You can edit the CSVINTO program and change it here:
Code: Select all
h = CSV_openBuf( parm.data: parm.dataLen: parm.dataCCSID
: *omit: *omit: *omit: *on );
Code: Select all
h = CSV_openBuf( parm.data: parm.dataLen: parm.dataCCSID
: *omit: *omit: '|': *on );
-
- Posts: 3
- Joined: Thu Mar 16, 2023 3:11 pm
Re: Passing in alternate field delimiters.
Hi Scott,
Okay thanks for the pointer.
I will take a look.
Cheers
Mick
Okay thanks for the pointer.
I will take a look.
Cheers
Mick